Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.0ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:54 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:54 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:54 UTC +00:00]]  (15.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:54 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:54 UTC +00:00]]  (5.3ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:54 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:54 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:54 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:54 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:54 UTC +00:00]] SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:29:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Thu, 14 Mar 2013 01:29:54 UTC +00:00], ["deleter_id", 3], ["deleter_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 14 Mar 2013 01:29:54 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 01:29:54.804348' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:54 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:54 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:54 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:29:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Thu, 14 Mar 2013 01:29:54 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "updated_at" = '2013-03-14 01:29:55.812929' WHERE "commontator_comments"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:55 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:55 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:55 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:55 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:55 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:55 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:29:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Thu, 14 Mar 2013 01:29:55 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE "commontator_comments" SET "body" = 'Something else', "updated_at" = '2013-03-14 01:29:56.838478' WHERE "commontator_comments"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:56 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:56 UTC +00:00]]  (9.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:56 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:56 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:56 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:56 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:29:56 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 01:29:56 UTC +00:00]]  (5.3ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:29:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Thu, 14 Mar 2013 01:29:56 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (5.4ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:56 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:56 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:56 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:56 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 3 LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:56 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:56 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:29:56 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 01:29:56 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:29:56 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 3], ["updated_at", Thu, 14 Mar 2013 01:29:56 UTC +00:00]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (5.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:56 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:56 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:29:56 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 01:29:56 UTC +00:00]]  (4.7ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 3 LIMIT 1 DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 3 LIMIT 1 DummyUser Load (0.2ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 4 LIMIT 1  (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-03-14 01:29:56.971623' WHERE "commontator_subscriptions"."id" = 3  (4.4ms) commit transaction Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (4.8ms) Sent mail to (10ms) Date: Wed, 13 Mar 2013 20:29:57 -0500 From: no-reply@example.com Message-ID: <5141281518533_14519517e495d@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 3 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 3:

Something

Click here to visit this thread.

 (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL SQLite3::SQLException: no such column: votes.vote_scope: SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-03-14 01:29:57.179867', "updated_at" = '2013-03-14 01:29:57.180560' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' SQLite3::SQLException: no such column: votes.vote_scope: SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Completed 500 Internal Server Error in 4ms  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL SQLite3::SQLException: no such column: votes.vote_scope: SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 01:29:57.238646', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-03-14 01:29:57.239195' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 01:29:57.245203' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (16.3ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 01:29:57.250261', "updated_at" = '2013-03-14 01:29:57.267175' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 01:29:57.272119' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 01:29:57.273686', "updated_at" = '2013-03-14 01:29:57.274157' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 01:29:57.277941' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "updated_at" = '2013-03-14 01:29:57.290791' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' SQLite3::SQLException: no such column: votes.vote_scope: SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' SQLite3::SQLException: no such column: votes.vote_scope: SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 01:29:57.420045', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-03-14 01:29:57.420632' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 01:29:57.425461' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 01:29:57.429227', "deleter_id" = 6, "updated_at" = '2013-03-14 01:29:57.429711' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 01:29:57.431756' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 01:29:57.451867', "updated_at" = '2013-03-14 01:29:57.452407' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 01:29:57.461131', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-03-14 01:29:57.461643' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 01:29:57.471026' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 01:29:57.476616', "deleter_id" = NULL, "deleter_type" = NULL, "updated_at" = '2013-03-14 01:29:57.477240' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 01:29:57.484438' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 01:29:57.485050', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-03-14 01:29:57.485528' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 01:29:57.506385', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-03-14 01:29:57.507051' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 01:29:57.515893' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' SQLite3::SQLException: no such column: votes.vote_scope: SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Completed 500 Internal Server Error in 4ms  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (3.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 1], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-03-14 01:29:57.553054' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-03-14 01:29:57.553896' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-03-14 01:29:57.679667' WHERE "commontator_subscriptions"."id" = 5 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Wed, 13 Mar 2013 20:29:57 -0500 From: no-reply@example.com Message-ID: <51412815a7cde_14519517e49690@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Wed, 13 Mar 2013 20:29:57 -0500 From: no-reply@example.com Message-ID: <51412815ae3e3_14519517e4974f@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-03-14 01:29:57.785780' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-03-14 01:29:57.786786' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-03-14 01:29:57.787714' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-03-14 01:29:57.790530' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-03-14 01:29:57.800991', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-03-14 01:29:57.801537' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-03-14 01:29:57.803085' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 4]] SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "updated_at" = '2013-03-14 01:29:57.834742' WHERE "commontator_threads"."id" = 4 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-03-14 01:29:57.837284', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-03-14 01:29:57.837682' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 5  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-03-14 01:29:57.869293', "updated_at" = '2013-03-14 01:29:57.869811' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-03-14 01:29:57.896682', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-03-14 01:29:57.897154' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-03-14 01:29:57.899657' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-03-14 01:29:57.902110', "updated_at" = '2013-03-14 01:29:57.902587' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-03-14 01:29:57.909009', "updated_at" = '2013-03-14 01:29:57.909438' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-03-14 01:29:57.913312' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-03-14 01:29:57.915099', "updated_at" = '2013-03-14 01:29:57.915490' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-03-14 01:29:57.918852' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-03-14 01:29:57.925060', "updated_at" = '2013-03-14 01:29:57.925576' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-03-14 01:29:57.934787' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:29:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.0ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:15 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:15 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:15 UTC +00:00]]  (11.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:15 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:15 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:15 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:15 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:15 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:34:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Thu, 14 Mar 2013 01:34:15 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE "commontator_comments" SET "body" = 'Something else', "updated_at" = '2013-03-14 01:34:16.194705' WHERE "commontator_comments"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:16 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:16 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:16 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:16 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:34:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Thu, 14 Mar 2013 01:34:16 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE "commontator_comments" SET "body" = 'Something else', "updated_at" = '2013-03-14 01:34:17.209565' WHERE "commontator_comments"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["deleter_id", 3], ["deleter_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 01:34:17.226165' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (10.2ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (6.2ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (5.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (5.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (5.2ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 3 LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (5.2ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 3], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 DummyUser Load (0.2ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (4.5ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 3 LIMIT 1 DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 3 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 4 LIMIT 1  (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-03-14 01:34:17.364990' WHERE "commontator_subscriptions"."id" = 3  (5.4ms) commit transaction Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (4.7ms) Sent mail to (10ms) Date: Wed, 13 Mar 2013 20:34:17 -0500 From: no-reply@example.com Message-ID: <5141291978c1a_14b585efe4826b3@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 3 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 3:

Something

Click here to visit this thread.

 (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_down" = 1, "updated_at" = '2013-03-14 01:34:17.559703' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 20ms (ActiveRecord: 1.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-03-14 01:34:17.577087' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-03-14 01:34:17.580182' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-03-14 01:34:17.585539' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_up" = 0, "updated_at" = '2013-03-14 01:34:17.588596' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 22ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-03-14 01:34:17.668475', "updated_at" = '2013-03-14 01:34:17.669234' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.3ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 01:34:17.725097', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-03-14 01:34:17.725667' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 01:34:17.735226' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 01:34:17.740606', "deleter_id" = NULL, "deleter_type" = NULL, "updated_at" = '2013-03-14 01:34:17.741084' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 01:34:17.747161' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 01:34:17.747778', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-03-14 01:34:17.748238' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 01:34:17.759987', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-03-14 01:34:17.760491' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 01:34:17.766003' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 01:34:17.770138', "updated_at" = '2013-03-14 01:34:17.770606' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 01:34:17.774330' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 01:34:17.775782', "updated_at" = '2013-03-14 01:34:17.776235' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 01:34:17.779907' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 5], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-03-14 01:34:17.792781' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 21ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-03-14 01:34:17.866046' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-03-14 01:34:17.882349' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_down" = 1, "updated_at" = '2013-03-14 01:34:17.885698' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-03-14 01:34:17.891529' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_down" = 0, "updated_at" = '2013-03-14 01:34:17.894675' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "updated_at" = '2013-03-14 01:34:17.980711' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:34:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 01:34:18.006187', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-03-14 01:34:18.006818' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 01:34:18.012649' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 01:34:18.017459', "deleter_id" = 6, "updated_at" = '2013-03-14 01:34:18.018096' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 01:34:18.020926' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 01:34:18.025043', "updated_at" = '2013-03-14 01:34:18.025651' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 01:34:18.058993', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-03-14 01:34:18.059700' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 01:34:18.068478' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-03-14 01:34:18.086784' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 0, "cached_votes_up" = 0, "updated_at" = '2013-03-14 01:34:18.113699' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 27ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_up" = 0, "cached_votes_down" = 1, "updated_at" = '2013-03-14 01:34:18.129708' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_down" = 0, "updated_at" = '2013-03-14 01:34:18.137952' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (3.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 1], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-03-14 01:34:18.160610' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-03-14 01:34:18.161620' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 24ms (ActiveRecord: 0.6ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-03-14 01:34:18.293208' WHERE "commontator_subscriptions"."id" = 5 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Wed, 13 Mar 2013 20:34:18 -0500 From: no-reply@example.com Message-ID: <5141291a495f5_14b585efe4827ad@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Wed, 13 Mar 2013 20:34:18 -0500 From: no-reply@example.com Message-ID: <5141291a4b825_14b585efe48288a@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-03-14 01:34:18.329337' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-03-14 01:34:18.330467' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-03-14 01:34:18.331478' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-03-14 01:34:18.334295' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-03-14 01:34:18.375096', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-03-14 01:34:18.375606' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-03-14 01:34:18.376794' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 4]] SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "updated_at" = '2013-03-14 01:34:18.433263' WHERE "commontator_threads"."id" = 4 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-03-14 01:34:18.435737', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-03-14 01:34:18.436138' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 5  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-03-14 01:34:18.462048', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-03-14 01:34:18.462590' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-03-14 01:34:18.465078' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-03-14 01:34:18.468735', "updated_at" = '2013-03-14 01:34:18.469427' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-03-14 01:34:18.494910', "updated_at" = '2013-03-14 01:34:18.495362' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-03-14 01:34:18.499275' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-03-14 01:34:18.501086', "updated_at" = '2013-03-14 01:34:18.501475' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-03-14 01:34:18.505112' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-03-14 01:34:18.528049', "updated_at" = '2013-03-14 01:34:18.528460' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-03-14 01:34:18.537276' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-03-14 01:34:18.552486', "updated_at" = '2013-03-14 01:34:18.553031' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 01:34:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.0ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:00:59 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:00:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:00:59 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:00:59 UTC +00:00]]  (42.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:00:59 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:00:59 UTC +00:00]]  (24.4ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:00:59 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:00:59 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:00:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:00:59 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:00:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Thu, 14 Mar 2013 02:00:59 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE "commontator_comments" SET "body" = 'Something else', "updated_at" = '2013-03-14 02:01:00.256014' WHERE "commontator_comments"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:00 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:00 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:00 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:00 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:00 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:00 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Thu, 14 Mar 2013 02:01:00 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE "commontator_comments" SET "body" = 'Something else', "updated_at" = '2013-03-14 02:01:01.287026' WHERE "commontator_comments"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["deleter_id", 3], ["deleter_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 02:01:01.302669' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]]  (35.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]]  (6.3ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]]  (5.6ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (14.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]]  (3.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 3 LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]]  (6.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 3], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (4.8ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]]  (3.8ms) commit transaction Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 3 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 3 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 4 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-03-14 02:01:01.460399' WHERE "commontator_subscriptions"."id" = 3  (3.8ms) commit transaction Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (4.7ms) Sent mail to (10ms) Date: Wed, 13 Mar 2013 21:01:01 -0500 From: no-reply@example.com Message-ID: <51412f5d8d952_16dabaeff092469@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 3 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 3:

Something

Click here to visit this thread.

 (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 02:01:01.618525', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-03-14 02:01:01.619202' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 8ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 02:01:01.625254' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 02:01:01.629119', "deleter_id" = 6, "updated_at" = '2013-03-14 02:01:01.629613' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 02:01:01.631726' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 02:01:01.634829', "updated_at" = '2013-03-14 02:01:01.635324' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 7ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 02:01:01.668648', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-03-14 02:01:01.669159' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 02:01:01.675430' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 02:01:01.679577', "updated_at" = '2013-03-14 02:01:01.680046' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 02:01:01.684379' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 02:01:01.685864', "updated_at" = '2013-03-14 02:01:01.686316' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 02:01:01.689949' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 02:01:01.722835', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-03-14 02:01:01.723357' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 02:01:01.749504' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 02:01:01.754957', "deleter_id" = NULL, "deleter_type" = NULL, "updated_at" = '2013-03-14 02:01:01.755479' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 02:01:01.761998' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 02:01:01.762622', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-03-14 02:01:01.763094' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (22.5ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-03-14 02:01:01.831657' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 0, "cached_votes_up" = 0, "updated_at" = '2013-03-14 02:01:01.840837' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_up" = 0, "cached_votes_down" = 1, "updated_at" = '2013-03-14 02:01:01.856843' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_down" = 0, "updated_at" = '2013-03-14 02:01:01.864806' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 02:01:01.905252', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-03-14 02:01:01.905943' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 02:01:01.913863' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "updated_at" = '2013-03-14 02:01:01.946417' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 23ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:01 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-03-14 02:01:01.999124', "updated_at" = '2013-03-14 02:01:01.999856' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 5], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-03-14 02:01:02.039823' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_down" = 1, "updated_at" = '2013-03-14 02:01:02.105565' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-03-14 02:01:02.122273' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-03-14 02:01:02.125532' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-03-14 02:01:02.131228' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_up" = 0, "updated_at" = '2013-03-14 02:01:02.134464' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-03-14 02:01:02.155064' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-03-14 02:01:02.172225' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_down" = 1, "updated_at" = '2013-03-14 02:01:02.175485' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-03-14 02:01:02.181728' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_down" = 0, "updated_at" = '2013-03-14 02:01:02.184971' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (1.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 1], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-03-14 02:01:02.248509' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-03-14 02:01:02.249361' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 21ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-03-14 02:01:02.381528' WHERE "commontator_subscriptions"."id" = 5 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Wed, 13 Mar 2013 21:01:02 -0500 From: no-reply@example.com Message-ID: <51412f5e5eec1_16dabaeff0925e4@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Wed, 13 Mar 2013 21:01:02 -0500 From: no-reply@example.com Message-ID: <51412f5e610e3_16dabaeff092624@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 4]] SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "updated_at" = '2013-03-14 02:01:02.477644' WHERE "commontator_threads"."id" = 4 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-03-14 02:01:02.480054', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-03-14 02:01:02.480438' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 5  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-03-14 02:01:02.511000' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-03-14 02:01:02.512160' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-03-14 02:01:02.513326' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-03-14 02:01:02.516930' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-03-14 02:01:02.523854', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-03-14 02:01:02.524361' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-03-14 02:01:02.525747' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-03-14 02:01:02.554045', "updated_at" = '2013-03-14 02:01:02.554579' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-03-14 02:01:02.599976', "updated_at" = '2013-03-14 02:01:02.600397' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-03-14 02:01:02.609988' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-03-14 02:01:02.619892', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-03-14 02:01:02.620445' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-03-14 02:01:02.622881' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-03-14 02:01:02.625309', "updated_at" = '2013-03-14 02:01:02.625803' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-03-14 02:01:02.632246', "updated_at" = '2013-03-14 02:01:02.632634' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-03-14 02:01:02.635839' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-03-14 02:01:02.637504', "updated_at" = '2013-03-14 02:01:02.637849' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-03-14 02:01:02.640480' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.0ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:36 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:36 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:36 UTC +00:00]]  (33.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:36 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:36 UTC +00:00]]  (5.7ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:36 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:36 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:36 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:36 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:36 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:36 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Thu, 14 Mar 2013 02:01:36 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE "commontator_comments" SET "body" = 'Something else', "updated_at" = '2013-03-14 02:01:37.579344' WHERE "commontator_comments"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:37 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:37 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:37 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:37 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:37 UTC +00:00]] SQL (0.5ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Thu, 14 Mar 2013 02:01:37 UTC +00:00], ["deleter_id", 3], ["deleter_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 14 Mar 2013 02:01:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 02:01:37.600011' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:37 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:37 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:37 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Thu, 14 Mar 2013 02:01:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE "commontator_comments" SET "body" = 'Something else', "updated_at" = '2013-03-14 02:01:38.607594' WHERE "commontator_comments"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:38 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:38 UTC +00:00]]  (32.3ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:38 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:38 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:38 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:38 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 02:01:38 UTC +00:00]]  (4.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Thu, 14 Mar 2013 02:01:38 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (4.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:38 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:38 UTC +00:00]]  (4.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:38 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 3 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:38 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:38 UTC +00:00]]  (24.2ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.5ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:38 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 02:01:38 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:38 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 3], ["updated_at", Thu, 14 Mar 2013 02:01:38 UTC +00:00]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (5.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:38 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:38 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:38 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 02:01:38 UTC +00:00]]  (4.5ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 3 LIMIT 1 DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 3 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 4 LIMIT 1  (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-03-14 02:01:38.778990' WHERE "commontator_subscriptions"."id" = 3  (4.3ms) commit transaction Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (4.7ms) Sent mail to (10ms) Date: Wed, 13 Mar 2013 21:01:38 -0500 From: no-reply@example.com Message-ID: <51412f82ddb0c_16e911987e04577f@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 3 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 3:

Something

Click here to visit this thread.

 (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:38 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:38 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:38 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:38 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:38 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:38 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:38 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 5], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-03-14 02:01:38.953712' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:38 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:38 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:38 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:38 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:38 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:38 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 02:01:38.980418', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-03-14 02:01:38.980934' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 02:01:38.990320' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 02:01:38.996929', "deleter_id" = NULL, "deleter_type" = NULL, "updated_at" = '2013-03-14 02:01:38.997398' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 02:01:39.003644' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 02:01:39.004245', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-03-14 02:01:39.004704' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_down" = 1, "updated_at" = '2013-03-14 02:01:39.025761' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-03-14 02:01:39.042259' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-03-14 02:01:39.045365' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-03-14 02:01:39.050758' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_up" = 0, "updated_at" = '2013-03-14 02:01:39.053784' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-03-14 02:01:39.089725', "updated_at" = '2013-03-14 02:01:39.090516' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 02:01:39.101474', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-03-14 02:01:39.102084' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 02:01:39.108630' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 02:01:39.136057', "updated_at" = '2013-03-14 02:01:39.136587' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 02:01:39.140952' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 02:01:39.142615', "updated_at" = '2013-03-14 02:01:39.143079' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 02:01:39.146785' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-03-14 02:01:39.265415' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 26ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-03-14 02:01:39.282069' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_down" = 1, "updated_at" = '2013-03-14 02:01:39.285321' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-03-14 02:01:39.291269' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_down" = 0, "updated_at" = '2013-03-14 02:01:39.294374' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-03-14 02:01:39.350357' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 0, "cached_votes_up" = 0, "updated_at" = '2013-03-14 02:01:39.359607' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_up" = 0, "cached_votes_down" = 1, "updated_at" = '2013-03-14 02:01:39.375642' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_down" = 0, "updated_at" = '2013-03-14 02:01:39.384623' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 27ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 02:01:39.422852', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-03-14 02:01:39.423616' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 02:01:39.433000' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 02:01:39.471182', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-03-14 02:01:39.471713' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 02:01:39.476579' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 02:01:39.480171', "deleter_id" = 6, "updated_at" = '2013-03-14 02:01:39.480763' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 02:01:39.483661' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 02:01:39.487491', "updated_at" = '2013-03-14 02:01:39.488101' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "updated_at" = '2013-03-14 02:01:39.547886' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (3.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 1], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-03-14 02:01:39.580480' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-03-14 02:01:39.581281' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-03-14 02:01:39.709239' WHERE "commontator_subscriptions"."id" = 5 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Wed, 13 Mar 2013 21:01:39 -0500 From: no-reply@example.com Message-ID: <51412f83aeebc_16e911987e045862@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Wed, 13 Mar 2013 21:01:39 -0500 From: no-reply@example.com Message-ID: <51412f83b1159_16e911987e04592c@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-03-14 02:01:39.763910' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-03-14 02:01:39.765155' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-03-14 02:01:39.766052' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-03-14 02:01:39.792397' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-03-14 02:01:39.799079', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-03-14 02:01:39.799602' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-03-14 02:01:39.800768' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 4]] SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "updated_at" = '2013-03-14 02:01:39.830039' WHERE "commontator_threads"."id" = 4 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-03-14 02:01:39.832253', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-03-14 02:01:39.832662' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 5  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-03-14 02:01:39.887872', "updated_at" = '2013-03-14 02:01:39.888420' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-03-14 02:01:39.918554', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-03-14 02:01:39.919207' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 21ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-03-14 02:01:39.921997' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-03-14 02:01:39.924640', "updated_at" = '2013-03-14 02:01:39.925131' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-03-14 02:01:39.931557', "updated_at" = '2013-03-14 02:01:39.931968' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-03-14 02:01:39.935662' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-03-14 02:01:39.937371', "updated_at" = '2013-03-14 02:01:39.937750' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-03-14 02:01:39.941280' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-03-14 02:01:39.947461', "updated_at" = '2013-03-14 02:01:39.947996' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-03-14 02:01:39.956605' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 02:01:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.5ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:43 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:43 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:43 UTC +00:00]]  (30.5ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:43 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:43 UTC +00:00]]  (5.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:43 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:43 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:43 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:48:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Thu, 14 Mar 2013 23:48:43 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE "commontator_comments" SET "body" = 'Something else', "updated_at" = '2013-03-14 23:48:44.618445' WHERE "commontator_comments"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:44 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:44 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:44 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:44 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:44 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:44 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:48:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Thu, 14 Mar 2013 23:48:44 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE "commontator_comments" SET "body" = 'Something else', "updated_at" = '2013-03-14 23:48:45.661469' WHERE "commontator_comments"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:45 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:45 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:45 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:45 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:45 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:48:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Thu, 14 Mar 2013 23:48:45 UTC +00:00], ["deleter_id", 3], ["deleter_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 14 Mar 2013 23:48:45 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 23:48:45.678005' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:45 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:45 UTC +00:00]]  (35.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:45 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:45 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:45 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:48:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 23:48:45 UTC +00:00]]  (18.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:48:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Thu, 14 Mar 2013 23:48:45 UTC +00:00]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (5.2ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:45 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:45 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:45 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 3 LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:45 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:45 UTC +00:00]]  (5.6ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:48:45 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 23:48:45 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:48:45 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 3], ["updated_at", Thu, 14 Mar 2013 23:48:45 UTC +00:00]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (21.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:45 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:45 UTC +00:00]]  (3.8ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:48:45 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 23:48:45 UTC +00:00]]  (4.4ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 3 LIMIT 1 DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 3 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 4 LIMIT 1  (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-03-14 23:48:45.872138' WHERE "commontator_subscriptions"."id" = 3  (4.5ms) commit transaction Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (4.7ms) Sent mail to (28ms) Date: Thu, 14 Mar 2013 18:48:46 -0500 From: no-reply@example.com Message-ID: <514261de18d9_e13448fe04293a@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 3 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 3:

Something

Click here to visit this thread.

 (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 23:48:46.091212', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-03-14 23:48:46.091802' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 23:48:46.096628' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 23:48:46.100490', "deleter_id" = 6, "updated_at" = '2013-03-14 23:48:46.101000' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 23:48:46.103107' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 23:48:46.106114', "updated_at" = '2013-03-14 23:48:46.106600' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-03-14 23:48:46.123221', "updated_at" = '2013-03-14 23:48:46.123900' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_down" = 1, "updated_at" = '2013-03-14 23:48:46.192942' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 18ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-03-14 23:48:46.209203' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.8ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-03-14 23:48:46.235003' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-03-14 23:48:46.240719' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_up" = 0, "updated_at" = '2013-03-14 23:48:46.243775' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-03-14 23:48:46.306661' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-03-14 23:48:46.321981' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_down" = 1, "updated_at" = '2013-03-14 23:48:46.325056' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-03-14 23:48:46.330396' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_down" = 0, "updated_at" = '2013-03-14 23:48:46.333416' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "updated_at" = '2013-03-14 23:48:46.347336' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 21ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 5], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-03-14 23:48:46.402881' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 23:48:46.428476', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-03-14 23:48:46.429007' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 23:48:46.435427' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 23:48:46.440016', "updated_at" = '2013-03-14 23:48:46.440545' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 23:48:46.445685' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 23:48:46.447481', "updated_at" = '2013-03-14 23:48:46.447996' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 23:48:46.452411' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 23:48:46.478510', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-03-14 23:48:46.479085' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 23:48:46.489845' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 23:48:46.513080', "deleter_id" = NULL, "deleter_type" = NULL, "updated_at" = '2013-03-14 23:48:46.513732' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 23:48:46.520568' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 23:48:46.521178', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-03-14 23:48:46.521658' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 5ms (ActiveRecord: 0.4ms)  (1.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 23:48:46.565096', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-03-14 23:48:46.565788' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 23:48:46.573792' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-03-14 23:48:46.614007' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 0, "cached_votes_up" = 0, "updated_at" = '2013-03-14 23:48:46.622399' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_up" = 0, "cached_votes_down" = 1, "updated_at" = '2013-03-14 23:48:46.637408' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_down" = 0, "updated_at" = '2013-03-14 23:48:46.645200' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (3.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 1], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-03-14 23:48:46.684833' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-03-14 23:48:46.685628' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-03-14 23:48:46.815126' WHERE "commontator_subscriptions"."id" = 5 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Thu, 14 Mar 2013 18:48:46 -0500 From: no-reply@example.com Message-ID: <514261dec8c41_e13448fe043011@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Thu, 14 Mar 2013 18:48:46 -0500 From: no-reply@example.com Message-ID: <514261decae75_e13448fe04314b@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-03-14 23:48:46.841172', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-03-14 23:48:46.841640' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-03-14 23:48:46.843011' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 4]] SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "updated_at" = '2013-03-14 23:48:46.894626' WHERE "commontator_threads"."id" = 4 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-03-14 23:48:46.896957', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-03-14 23:48:46.897364' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 5  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-03-14 23:48:46.938195' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-03-14 23:48:46.939448' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-03-14 23:48:46.940636' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-03-14 23:48:46.944075' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-03-14 23:48:46.969218', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-03-14 23:48:46.969740' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-03-14 23:48:46.972167' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-03-14 23:48:46.975204', "updated_at" = '2013-03-14 23:48:46.975726' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-03-14 23:48:46.989402', "updated_at" = '2013-03-14 23:48:46.989951' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:47 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:47 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:47 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:47 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:47 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:47 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-03-14 23:48:47.028344', "updated_at" = '2013-03-14 23:48:47.028776' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-03-14 23:48:47.038701' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:47 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:47 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:47 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-03-14 23:48:47.065135', "updated_at" = '2013-03-14 23:48:47.065555' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-03-14 23:48:47.068868' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-03-14 23:48:47.070533', "updated_at" = '2013-03-14 23:48:47.070913' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-03-14 23:48:47.074040' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:47 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:47 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:47 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:47 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:48:47 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:48:47 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:48:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.0ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:54 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:54 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:54 UTC +00:00]]  (13.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:54 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:54 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:54 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:54 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:54 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:50:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Thu, 14 Mar 2013 23:50:54 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "updated_at" = '2013-03-14 23:50:55.647999' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:55 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:55 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:55 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:50:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Thu, 14 Mar 2013 23:50:55 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "updated_at" = '2013-03-14 23:50:56.678906' WHERE "commontator_comments"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00], ["deleter_id", 3], ["deleter_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 23:50:56.693965' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00]]  (26.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00]]  (5.3ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00]]  (5.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (5.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00]]  (3.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 3 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 3], ["updated_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (5.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00]]  (5.4ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 3 LIMIT 1 DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 3 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 4 LIMIT 1  (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-03-14 23:50:56.850554' WHERE "commontator_subscriptions"."id" = 3  (5.2ms) commit transaction Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (4.6ms) Sent mail to (29ms) Date: Thu, 14 Mar 2013 18:50:56 -0500 From: no-reply@example.com Message-ID: <51426260ef65a_e1de907f0584d6@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 3 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 3:

Something

Click here to visit this thread.

 (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:50:56 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 23:50:56.992566', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-03-14 23:50:56.993209' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 23:50:57.022314' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 8ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 23:50:57.027565', "updated_at" = '2013-03-14 23:50:57.028052' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 23:50:57.032476' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 23:50:57.033947', "updated_at" = '2013-03-14 23:50:57.034417' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 23:50:57.038078' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-03-14 23:50:57.061795' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 0, "cached_votes_up" = 0, "updated_at" = '2013-03-14 23:50:57.070703' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_up" = 0, "cached_votes_down" = 1, "updated_at" = '2013-03-14 23:50:57.086283' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_down" = 0, "updated_at" = '2013-03-14 23:50:57.094084' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 23:50:57.133168', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-03-14 23:50:57.133755' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 23:50:57.155491' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 23:50:57.159551', "deleter_id" = 6, "updated_at" = '2013-03-14 23:50:57.160057' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 23:50:57.162223' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 23:50:57.165334', "updated_at" = '2013-03-14 23:50:57.165841' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 23:50:57.206667', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-03-14 23:50:57.207361' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 23:50:57.216638' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (22.4ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 26ms (ActiveRecord: 22.6ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 7ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "updated_at" = '2013-03-14 23:50:57.296390' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 5], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-03-14 23:50:57.318797' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 21ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-03-14 23:50:57.393454' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-03-14 23:50:57.410998' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_down" = 1, "updated_at" = '2013-03-14 23:50:57.414404' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-03-14 23:50:57.420540' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_down" = 0, "updated_at" = '2013-03-14 23:50:57.423709' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 23:50:57.433973', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-03-14 23:50:57.434491' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 23:50:57.443688' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 23:50:57.449205', "deleter_id" = NULL, "deleter_type" = NULL, "updated_at" = '2013-03-14 23:50:57.449781' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-03-14 23:50:57.456632' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-03-14 23:50:57.457277', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-03-14 23:50:57.457753' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.4ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 27ms (ActiveRecord: 0.7ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-03-14 23:50:57.521444', "updated_at" = '2013-03-14 23:50:57.522173' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_down" = 1, "updated_at" = '2013-03-14 23:50:57.541209' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-03-14 23:50:57.556814' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-03-14 23:50:57.559939' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-03-14 23:50:57.565307' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_up" = 0, "updated_at" = '2013-03-14 23:50:57.568370' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (1.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 1], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-03-14 23:50:57.620958' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-03-14 23:50:57.621733' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-03-14 23:50:57.752877' WHERE "commontator_subscriptions"."id" = 5 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Thu, 14 Mar 2013 18:50:57 -0500 From: no-reply@example.com Message-ID: <51426261bded9_e1de907f05857f@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Thu, 14 Mar 2013 18:50:57 -0500 From: no-reply@example.com Message-ID: <51426261c01e8_e1de907f0586b5@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-03-14 23:50:57.829914' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-03-14 23:50:57.830827' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-03-14 23:50:57.831711' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-03-14 23:50:57.834286' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 4]] SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "updated_at" = '2013-03-14 23:50:57.891435' WHERE "commontator_threads"."id" = 4 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-03-14 23:50:57.893609', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-03-14 23:50:57.894004' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 5  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-03-14 23:50:57.900899', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-03-14 23:50:57.901328' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-03-14 23:50:57.902397' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-03-14 23:50:57.911970', "updated_at" = '2013-03-14 23:50:57.912370' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 20ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-03-14 23:50:57.940680' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-03-14 23:50:57.981572', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-03-14 23:50:57.982106' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-03-14 23:50:57.984510' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-03-14 23:50:57.987153', "updated_at" = '2013-03-14 23:50:57.987607' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-03-14 23:50:58.000613', "updated_at" = '2013-03-14 23:50:58.001141' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:58 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:58 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:58 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-03-14 23:50:58.009490', "updated_at" = '2013-03-14 23:50:58.009900' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-03-14 23:50:58.013398' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-03-14 23:50:58.015097', "updated_at" = '2013-03-14 23:50:58.015473' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-03-14 23:50:58.018240' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:58 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:58 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:58 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:58 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 14 Mar 2013 23:50:58 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 14 Mar 2013 23:50:58 UTC +00:00], ["updated_at", Thu, 14 Mar 2013 23:50:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (22.6ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:15 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:15 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:15 UTC +00:00]]  (18.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:15 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:15 UTC +00:00]]  (5.6ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:15 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:15 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:15 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 04 Apr 2013 16:46:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Thu, 04 Apr 2013 16:46:15 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE "commontator_comments" SET "body" = 'Something else', "updated_at" = '2013-04-04 16:46:16.271538' WHERE "commontator_comments"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:16 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:16 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:16 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:16 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 04 Apr 2013 16:46:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Thu, 04 Apr 2013 16:46:16 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "updated_at" = '2013-04-04 16:46:17.286559' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["deleter_id", 3], ["deleter_type", "DummyUser"], ["thread_id", 2], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-04-04 16:46:17.296879' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (11.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (5.5ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (6.5ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (6.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (4.3ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 3 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (5.4ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["unread", 0], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (5.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 3], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (5.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["unread", 0], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (5.1ms) commit transaction Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 3 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 3 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 4 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-04-04 16:46:17.445415' WHERE "commontator_subscriptions"."id" = 3  (4.1ms) commit transaction Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (4.8ms) Sent mail to (29ms) Date: Thu, 04 Apr 2013 11:46:17 -0500 From: no-reply@example.com Message-ID: <515dae598691d_f50cb4fe4943cb@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 3 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 3:

Something

Click here to visit this thread.

 (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-04-04 16:46:17.597141', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-04-04 16:46:17.597756' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-04-04 16:46:17.604743' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-04-04 16:46:17.609778', "updated_at" = '2013-04-04 16:46:17.610256' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-04-04 16:46:17.614563' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-04-04 16:46:17.616025', "updated_at" = '2013-04-04 16:46:17.616492' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-04-04 16:46:17.620099' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-04-04 16:46:17.627920', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-04-04 16:46:17.628424' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-04-04 16:46:17.636835' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-04-04 16:46:17.641854', "deleter_id" = NULL, "deleter_type" = NULL, "updated_at" = '2013-04-04 16:46:17.642301' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-04-04 16:46:17.648195' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-04-04 16:46:17.648774', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-04-04 16:46:17.649221' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-04-04 16:46:17.664949', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-04-04 16:46:17.665529' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-04-04 16:46:17.670354' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-04-04 16:46:17.674042', "deleter_id" = 6, "updated_at" = '2013-04-04 16:46:17.674524' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-04-04 16:46:17.676577' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-04-04 16:46:17.679586', "updated_at" = '2013-04-04 16:46:17.680062' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 19ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]] DummyModel Load (0.4ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_down" = 1, "updated_at" = '2013-04-04 16:46:17.772163' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 19ms (ActiveRecord: 1.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-04-04 16:46:17.788410' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-04-04 16:46:17.791483' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-04-04 16:46:17.796788' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_up" = 0, "updated_at" = '2013-04-04 16:46:17.799799' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-04-04 16:46:17.873027' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-04-04 16:46:17.906402' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_down" = 1, "updated_at" = '2013-04-04 16:46:17.909572' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-04-04 16:46:17.915011' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_down" = 0, "updated_at" = '2013-04-04 16:46:17.918222' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 7ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (1.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 28ms (ActiveRecord: 1.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-04-04 16:46:18.011373' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 0, "cached_votes_up" = 0, "updated_at" = '2013-04-04 16:46:18.020207' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_up" = 0, "cached_votes_down" = 1, "updated_at" = '2013-04-04 16:46:18.035802' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_down" = 0, "updated_at" = '2013-04-04 16:46:18.043572' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "updated_at" = '2013-04-04 16:46:18.058004' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 5], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-04-04 16:46:18.080151' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-04-04 16:46:18.148792', "updated_at" = '2013-04-04 16:46:18.149571' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-04-04 16:46:18.168861', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-04-04 16:46:18.169532' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-04-04 16:46:18.178194' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (3.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 1], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-04-04 16:46:18.201980' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-04-04 16:46:18.202810' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (22.5ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 26ms (ActiveRecord: 22.9ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-04-04 16:46:18.329555' WHERE "commontator_subscriptions"."id" = 5 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Thu, 04 Apr 2013 11:46:18 -0500 From: no-reply@example.com Message-ID: <515dae5a521ca_f50cb4fe4944ea@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Thu, 04 Apr 2013 11:46:18 -0500 From: no-reply@example.com Message-ID: <515dae5a5424c_f50cb4fe4945a5@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-04-04 16:46:18.366567', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-04-04 16:46:18.367002' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-04-04 16:46:18.368132' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-04-04 16:46:18.440095' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-04-04 16:46:18.441115' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-04-04 16:46:18.442119' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-04-04 16:46:18.445648' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 4]] SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "updated_at" = '2013-04-04 16:46:18.459761' WHERE "commontator_threads"."id" = 4 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-04-04 16:46:18.462123', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-04-04 16:46:18.462516' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 5  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-04-04 16:46:18.479829', "updated_at" = '2013-04-04 16:46:18.480352' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-04-04 16:46:18.488548', "updated_at" = '2013-04-04 16:46:18.488940' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-04-04 16:46:18.492671' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-04-04 16:46:18.494451', "updated_at" = '2013-04-04 16:46:18.494826' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-04-04 16:46:18.498216' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-04-04 16:46:18.504952', "updated_at" = '2013-04-04 16:46:18.505439' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-04-04 16:46:18.514581' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (1.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-04-04 16:46:18.585976', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-04-04 16:46:18.586436' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-04-04 16:46:18.588735' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-04-04 16:46:18.590672', "updated_at" = '2013-04-04 16:46:18.591104' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00], ["updated_at", Thu, 04 Apr 2013 16:46:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (4.0ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]]  (18.4ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]]  (3.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]]  (3.6ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:21:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.0ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]]  (14.4ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]]  (5.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:39 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:39 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:39 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:39 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:39 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:39 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:39 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:24:39 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:24:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (2.9ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]]  (9.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]]  (5.5ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["deleter_id", 3], ["deleter_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]]  (6.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]]  (9.3ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]]  (4.8ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 3 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 3 LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]]  (4.8ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.5ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 3], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:25:40 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.8ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (2.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 1], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-07-12 23:25:41.179674' WHERE "commontator_subscriptions"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-07-12 23:25:41.181028' WHERE "commontator_subscriptions"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-12 23:25:41.323090' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 4 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-12 23:25:41.345154' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-12 23:25:41.346084' WHERE "commontator_subscriptions"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-07-12 23:25:41.346931' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-07-12 23:25:41.350379' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (22.4ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:25:41.440741', "closer_id" = 4, "closer_type" = 'DummyUser', "updated_at" = '2013-07-12 23:25:41.442260' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-12 23:25:41.444403' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 6ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:25:41.475719', "updated_at" = '2013-07-12 23:25:41.476969' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:25:41.485842', "updated_at" = '2013-07-12 23:25:41.486887' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-12 23:25:41.491263' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:25:41.492984', "updated_at" = '2013-07-12 23:25:41.493916' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-12 23:25:41.497742' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:25:41.506292', "closer_id" = 4, "closer_type" = 'DummyUser', "updated_at" = '2013-07-12 23:25:41.507383' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-12 23:25:41.510246' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:25:41.512353', "updated_at" = '2013-07-12 23:25:41.513395' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:25:41.520188', "updated_at" = '2013-07-12 23:25:41.521143' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-12 23:25:41.530141' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:25:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (2.9ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:04 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:04 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:04 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:04 UTC +00:00]]  (14.3ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:04 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:04 UTC +00:00]]  (5.2ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:04 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:04 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:04 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:04 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:30:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Fri, 12 Jul 2013 23:30:04 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.2ms) UPDATE "commontator_comments" SET "body" = 'Something else', "updated_at" = '2013-07-12 23:30:05.233371' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:05 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:05 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:05 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:05 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:30:05 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Fri, 12 Jul 2013 23:30:05 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "updated_at" = '2013-07-12 23:30:06.244353' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["deleter_id", 3], ["deleter_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:30:06.289182' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]]  (9.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]]  (5.5ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]]  (5.6ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (5.3ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]]  (3.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 3 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 3 LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]]  (5.3ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.5ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 3], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (5.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 3 LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.5ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]]  (4.8ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 3 LIMIT 1 DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 3 LIMIT 1 DummyUser Load (0.2ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 4 LIMIT 1  (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-12 23:30:06.419805' WHERE "commontator_subscriptions"."id" = 3  (4.8ms) commit transaction Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (23.1ms) Sent mail to (29ms) Date: Fri, 12 Jul 2013 18:30:06 -0500 From: no-reply@example.com Message-ID: <51e0917e86793_48dcefbff036632@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 3 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 3:

Something

Click here to visit this thread.

 (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:30:06.574345', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-07-12 23:30:06.575812' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:30:06.586712' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 5], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-07-12 23:30:06.659317' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "updated_at" = '2013-07-12 23:30:06.689344' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_down" = 1, "updated_at" = '2013-07-12 23:30:06.746302' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-07-12 23:30:06.763276' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-07-12 23:30:06.767097' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-07-12 23:30:06.772370' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_up" = 0, "updated_at" = '2013-07-12 23:30:06.776085' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (17.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-07-12 23:30:06.844431' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 11ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-07-12 23:30:06.861388' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_down" = 1, "updated_at" = '2013-07-12 23:30:06.865333' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-07-12 23:30:06.871056' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_down" = 0, "updated_at" = '2013-07-12 23:30:06.875044' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:30:06.887050', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-07-12 23:30:06.888518' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:30:06.895748' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:30:06.901023', "updated_at" = '2013-07-12 23:30:06.902568' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:30:06.908236' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:30:06.910171', "updated_at" = '2013-07-12 23:30:06.911495' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.9ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:30:06.940080' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 29ms (ActiveRecord: 1.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:30:06 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 11ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:30:07.016601', "updated_at" = '2013-07-12 23:30:07.018009' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-07-12 23:30:07.035966' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 0, "cached_votes_up" = 0, "updated_at" = '2013-07-12 23:30:07.045170' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_up" = 0, "cached_votes_down" = 1, "updated_at" = '2013-07-12 23:30:07.060954' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_down" = 0, "updated_at" = '2013-07-12 23:30:07.069418' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 27ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:30:07.104592', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-07-12 23:30:07.106115' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:30:07.113348' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:30:07.117262', "deleter_id" = 6, "updated_at" = '2013-07-12 23:30:07.118853' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:30:07.122479' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:30:07.126304', "updated_at" = '2013-07-12 23:30:07.127838' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:30:07.138146', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-07-12 23:30:07.139328' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:30:07.149141' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:30:07.154553', "deleter_id" = NULL, "deleter_type" = NULL, "updated_at" = '2013-07-12 23:30:07.155947' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:30:07.164634' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:30:07.165251', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-07-12 23:30:07.166398' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.6ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (1.7ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 1], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-07-12 23:30:07.247997' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-07-12 23:30:07.248776' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-12 23:30:07.380083' WHERE "commontator_subscriptions"."id" = 5 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Fri, 12 Jul 2013 18:30:07 -0500 From: no-reply@example.com Message-ID: <51e0917f5e94b_48dcefbff036778@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Fri, 12 Jul 2013 18:30:07 -0500 From: no-reply@example.com Message-ID: <51e0917f60c1c_48dcefbff036835@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 4]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-07-12 23:30:07.454675', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-12 23:30:07.455085' WHERE "commontator_threads"."id" = 4 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 5  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:30:07.466372', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-12 23:30:07.467500' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-12 23:30:07.487803' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-12 23:30:07.529556' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-12 23:30:07.530485' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-07-12 23:30:07.531345' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-07-12 23:30:07.534823' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:30:07.574832', "updated_at" = '2013-07-12 23:30:07.576065' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:30:07.586792', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-12 23:30:07.587861' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-12 23:30:07.590720' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:30:07.592705', "updated_at" = '2013-07-12 23:30:07.593701' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:30:07.600278', "updated_at" = '2013-07-12 23:30:07.601219' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-12 23:30:07.610950' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:30:07.671525', "updated_at" = '2013-07-12 23:30:07.672599' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-12 23:30:07.676946' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:30:07.678768', "updated_at" = '2013-07-12 23:30:07.680030' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-12 23:30:07.683717' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:30:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:34 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:34 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:34 UTC +00:00]]  (14.2ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:34 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:34 UTC +00:00]]  (5.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:34 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:34 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:34 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:35:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Fri, 12 Jul 2013 23:35:34 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.2ms) UPDATE "commontator_comments" SET "body" = 'Something else', "updated_at" = '2013-07-12 23:35:35.831877' WHERE "commontator_comments"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:35 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:35 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:35 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:35 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:35:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Fri, 12 Jul 2013 23:35:35 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "updated_at" = '2013-07-12 23:35:36.845535' WHERE "commontator_comments"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:36 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:35:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Fri, 12 Jul 2013 23:35:36 UTC +00:00], ["deleter_id", 3], ["deleter_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 12 Jul 2013 23:35:36 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:35:36.891351' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:36 UTC +00:00]]  (9.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:36 UTC +00:00]]  (5.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:35:36 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:35:36 UTC +00:00]]  (5.6ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:35:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Fri, 12 Jul 2013 23:35:36 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (5.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:36 UTC +00:00]]  (4.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 3 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:36 UTC +00:00]]  (5.3ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 3 LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.5ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:35:36 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:35:36 UTC +00:00]]  (5.3ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.5ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:35:36 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 3], ["updated_at", Fri, 12 Jul 2013 23:35:36 UTC +00:00]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (5.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:36 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 3 LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.5ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (6.7ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 3 LIMIT 1 DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 3 LIMIT 1 DummyUser Load (0.2ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 4 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-12 23:35:37.021742' WHERE "commontator_subscriptions"."id" = 3  (5.1ms) commit transaction Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (22.8ms) Sent mail to (28ms) Date: Fri, 12 Jul 2013 18:35:37 -0500 From: no-reply@example.com Message-ID: <51e092c923855_49185997f09656e@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 3 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 3:

Something

Click here to visit this thread.

 (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:35:37.192843', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-07-12 23:35:37.194114' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:35:37.201166' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:35:37.204880', "deleter_id" = 6, "updated_at" = '2013-07-12 23:35:37.205991' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:35:37.208712' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:35:37.211707', "updated_at" = '2013-07-12 23:35:37.212794' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-07-12 23:35:37.263364' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 41ms (ActiveRecord: 1.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-07-12 23:35:37.280889' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_down" = 1, "updated_at" = '2013-07-12 23:35:37.284780' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-07-12 23:35:37.290165' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_down" = 0, "updated_at" = '2013-07-12 23:35:37.293921' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 5], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-07-12 23:35:37.344152' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:35:37.368433', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-07-12 23:35:37.369562' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:35:37.379642' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:35:37.384620', "deleter_id" = NULL, "deleter_type" = NULL, "updated_at" = '2013-07-12 23:35:37.385683' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:35:37.410999' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:35:37.411612', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-07-12 23:35:37.412729' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "updated_at" = '2013-07-12 23:35:37.482667' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]] DummyModel Load (1.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:35:37.556648', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-07-12 23:35:37.557803' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:35:37.563968' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:35:37.568605', "updated_at" = '2013-07-12 23:35:37.569712' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:35:37.573985' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:35:37.575477', "updated_at" = '2013-07-12 23:35:37.576552' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:35:37.580828' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:35:37.598846', "updated_at" = '2013-07-12 23:35:37.600314' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 8ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_down" = 1, "updated_at" = '2013-07-12 23:35:37.671252' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 28ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-07-12 23:35:37.688219' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-07-12 23:35:37.692164' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-07-12 23:35:37.697829' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_up" = 0, "updated_at" = '2013-07-12 23:35:37.701887' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:35:37.721080', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-07-12 23:35:37.722585' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:35:37.732613' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-07-12 23:35:37.752654' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.5ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 0, "cached_votes_up" = 0, "updated_at" = '2013-07-12 23:35:37.786393' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 34ms (ActiveRecord: 1.4ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_up" = 0, "cached_votes_down" = 1, "updated_at" = '2013-07-12 23:35:37.802906' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_down" = 0, "updated_at" = '2013-07-12 23:35:37.811568' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (3.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 1], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-07-12 23:35:37.834763' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-07-12 23:35:37.835540' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-12 23:35:37.966250' WHERE "commontator_subscriptions"."id" = 5 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Fri, 12 Jul 2013 18:35:37 -0500 From: no-reply@example.com Message-ID: <51e092c9edb16_49185997f0966e0@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Fri, 12 Jul 2013 18:35:37 -0500 From: no-reply@example.com Message-ID: <51e092c9efe77_49185997f0967d0@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:35:37.993968', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-12 23:35:37.995344' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-12 23:35:37.997482' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-12 23:35:38.030064' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-12 23:35:38.031014' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-07-12 23:35:38.032060' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-07-12 23:35:38.035930' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 4]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-07-12 23:35:38.049493', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-12 23:35:38.049964' WHERE "commontator_threads"."id" = 4 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (1.3ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 5  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:35:38.136116', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-12 23:35:38.137348' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-12 23:35:38.140649' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:35:38.143538', "updated_at" = '2013-07-12 23:35:38.144620' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:35:38.158267', "updated_at" = '2013-07-12 23:35:38.159598' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:35:38.181935', "updated_at" = '2013-07-12 23:35:38.183054' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-12 23:35:38.192877' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (18.7ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:35:38.220076', "updated_at" = '2013-07-12 23:35:38.221209' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-12 23:35:38.225251' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:35:38.226910', "updated_at" = '2013-07-12 23:35:38.227935' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-12 23:35:38.231795' WHERE "commontator_threads"."id" = 4  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:35:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.0ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:51 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:51 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:51 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:51 UTC +00:00]]  (12.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:51 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:51 UTC +00:00]]  (5.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:51 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:51 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:51 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:51 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:51 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:51 UTC +00:00]] SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:37:51 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Fri, 12 Jul 2013 23:37:51 UTC +00:00], ["deleter_id", 3], ["deleter_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 12 Jul 2013 23:37:51 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:37:51.533587' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:51 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:51 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:51 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:51 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:37:51 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Fri, 12 Jul 2013 23:37:51 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "updated_at" = '2013-07-12 23:37:52.543138' WHERE "commontator_comments"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:52 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:52 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:52 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:52 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:52 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:52 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:37:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Fri, 12 Jul 2013 23:37:52 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.2ms) UPDATE "commontator_comments" SET "body" = 'Something else', "updated_at" = '2013-07-12 23:37:53.589863' WHERE "commontator_comments"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00]]  (9.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.5ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00]]  (5.9ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (4.2ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00]]  (3.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00]]  (4.4ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-12 23:37:53.674056' WHERE "commontator_subscriptions"."id" = 2  (4.0ms) commit transaction Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (23.0ms) Sent mail to (28ms) Date: Fri, 12 Jul 2013 18:37:53 -0500 From: no-reply@example.com Message-ID: <51e09351c21a5_492b3dffe0306a2@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00]]  (5.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 3 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 3 LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.5ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 3], ["updated_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 4 LIMIT 1  (4.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:37:53.878175', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-07-12 23:37:53.879305' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:37:53.885970' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:37:53.891771', "updated_at" = '2013-07-12 23:37:53.892857' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:37:53.897856' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:37:53.899355', "updated_at" = '2013-07-12 23:37:53.900418' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:37:53.905018' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 25ms (ActiveRecord: 0.1ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:37:53 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:37:53.984205', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-07-12 23:37:53.985496' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:37:53.996034' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:37:54.001248', "deleter_id" = NULL, "deleter_type" = NULL, "updated_at" = '2013-07-12 23:37:54.002336' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:37:54.009693' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:37:54.010271', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-07-12 23:37:54.011324' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-07-12 23:37:54.043654' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 19ms (ActiveRecord: 1.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-07-12 23:37:54.060825' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_down" = 1, "updated_at" = '2013-07-12 23:37:54.064631' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-07-12 23:37:54.069955' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_down" = 0, "updated_at" = '2013-07-12 23:37:54.073658' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 21ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:37:54.110876', "updated_at" = '2013-07-12 23:37:54.112380' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 5], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-07-12 23:37:54.130901' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (23.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.2ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_down" = 1, "updated_at" = '2013-07-12 23:37:54.216832' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 11ms (ActiveRecord: 1.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-07-12 23:37:54.236090' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-07-12 23:37:54.241025' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-07-12 23:37:54.249058' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_up" = 0, "updated_at" = '2013-07-12 23:37:54.253533' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 12ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-07-12 23:37:54.273522' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 0, "cached_votes_up" = 0, "updated_at" = '2013-07-12 23:37:54.283631' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 11ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_up" = 0, "cached_votes_down" = 1, "updated_at" = '2013-07-12 23:37:54.300131' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_down" = 0, "updated_at" = '2013-07-12 23:37:54.309575' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:37:54.325892', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-07-12 23:37:54.327137' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:37:54.333213' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:37:54.336953', "deleter_id" = 6, "updated_at" = '2013-07-12 23:37:54.338039' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:37:54.340748' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:37:54.361311', "updated_at" = '2013-07-12 23:37:54.362550' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 22ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "updated_at" = '2013-07-12 23:37:54.378376' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 37ms (ActiveRecord: 0.3ms)  (0.2ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:37:54.522243', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-07-12 23:37:54.524380' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:37:54.536739' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (3.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 1], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-07-12 23:37:54.578726' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-07-12 23:37:54.579645' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 26ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-12 23:37:54.715480' WHERE "commontator_subscriptions"."id" = 5 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Fri, 12 Jul 2013 18:37:54 -0500 From: no-reply@example.com Message-ID: <51e09352b06f2_492b3dffe030751@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Fri, 12 Jul 2013 18:37:54 -0500 From: no-reply@example.com Message-ID: <51e09352b29fd_492b3dffe0308ed@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 4]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-07-12 23:37:54.747696', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-12 23:37:54.748049' WHERE "commontator_threads"."id" = 4 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 5  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:37:54.777494', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-12 23:37:54.778711' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-12 23:37:54.781264' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] DummyModel Load (1.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-12 23:37:54.854946' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-12 23:37:54.855900' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-07-12 23:37:54.856751' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-07-12 23:37:54.860168' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:37:54.885339', "updated_at" = '2013-07-12 23:37:54.886287' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-12 23:37:54.896679' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:37:54.907353', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-12 23:37:54.908512' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-12 23:37:54.911439' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:37:54.914017', "updated_at" = '2013-07-12 23:37:54.915015' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:37:54.928107', "updated_at" = '2013-07-12 23:37:54.929303' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:37:54.988117', "updated_at" = '2013-07-12 23:37:54.989132' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-12 23:37:54.993430' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:37:54.995306', "updated_at" = '2013-07-12 23:37:54.996499' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-12 23:37:55.000450' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:37:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:37:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:37:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.0ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:34 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:34 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:34 UTC +00:00]]  (12.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:34 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:34 UTC +00:00]]  (4.3ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:34 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:34 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:34 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:34 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:34 UTC +00:00]] SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:40:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Fri, 12 Jul 2013 23:40:34 UTC +00:00], ["deleter_id", 3], ["deleter_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 12 Jul 2013 23:40:34 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:40:34.171303' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:34 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:34 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:34 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:34 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:34 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:34 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:40:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Fri, 12 Jul 2013 23:40:34 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.2ms) UPDATE "commontator_comments" SET "body" = 'Something else', "updated_at" = '2013-07-12 23:40:35.214308' WHERE "commontator_comments"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:35 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:35 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:35 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:35 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:40:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Fri, 12 Jul 2013 23:40:35 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "updated_at" = '2013-07-12 23:40:36.230534' WHERE "commontator_comments"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (8.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (4.3ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (4.4ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (4.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 3 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 3 LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 3], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 DummyUser Load (0.2ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (6.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 3 LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (4.7ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 3 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 3 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 4 LIMIT 1  (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-12 23:40:36.350088' WHERE "commontator_subscriptions"."id" = 3  (4.7ms) commit transaction Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (22.8ms) Sent mail to (28ms) Date: Fri, 12 Jul 2013 18:40:36 -0500 From: no-reply@example.com Message-ID: <51e093f4733c1_493c917fe462867@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 3 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 3:

Something

Click here to visit this thread.

 (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:40:36.513963', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-07-12 23:40:36.515099' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:40:36.522492' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 8ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:40:36.528115', "updated_at" = '2013-07-12 23:40:36.529193' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:40:36.534237' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:40:36.536262', "updated_at" = '2013-07-12 23:40:36.537774' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:40:36.542659' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 27ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:40:36.583148', "updated_at" = '2013-07-12 23:40:36.584627' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:40:36.607008', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-07-12 23:40:36.608495' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:40:36.617592' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_down" = 1, "updated_at" = '2013-07-12 23:40:36.696000' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 18ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-07-12 23:40:36.712489' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-07-12 23:40:36.716272' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-07-12 23:40:36.738618' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_up" = 0, "updated_at" = '2013-07-12 23:40:36.742604' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 27ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:40:36.778476', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-07-12 23:40:36.779952' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:40:36.786287' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:40:36.790004', "deleter_id" = 6, "updated_at" = '2013-07-12 23:40:36.791344' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:40:36.794376' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:40:36.798165', "updated_at" = '2013-07-12 23:40:36.799519' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.7ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 29ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:40:36.940227', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-07-12 23:40:36.941371' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:40:36.950517' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:40:36.956939', "deleter_id" = NULL, "deleter_type" = NULL, "updated_at" = '2013-07-12 23:40:36.958058' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:40:36.965370' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:40:36.965956', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-07-12 23:40:36.967026' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 21ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:40:36 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "updated_at" = '2013-07-12 23:40:37.003055' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-07-12 23:40:37.037135' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-07-12 23:40:37.056621' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_down" = 1, "updated_at" = '2013-07-12 23:40:37.060654' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-07-12 23:40:37.066791' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_down" = 0, "updated_at" = '2013-07-12 23:40:37.070654' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-07-12 23:40:37.092286' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 0, "cached_votes_up" = 0, "updated_at" = '2013-07-12 23:40:37.102281' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_up" = 0, "cached_votes_down" = 1, "updated_at" = '2013-07-12 23:40:37.120073' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_down" = 0, "updated_at" = '2013-07-12 23:40:37.147356' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 28ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (1.5ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 5], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-07-12 23:40:37.192977' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (1.7ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 1], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-07-12 23:40:37.226671' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-07-12 23:40:37.227471' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-12 23:40:37.366428' WHERE "commontator_subscriptions"."id" = 5 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Fri, 12 Jul 2013 18:40:37 -0500 From: no-reply@example.com Message-ID: <51e093f55b96a_493c917fe4629f7@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Fri, 12 Jul 2013 18:40:37 -0500 From: no-reply@example.com Message-ID: <51e093f55dc34_493c917fe4630f3@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:40:37.415562', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-12 23:40:37.416903' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-12 23:40:37.419987' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 4]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-07-12 23:40:37.431593', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-12 23:40:37.431961' WHERE "commontator_threads"."id" = 4 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 5  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-12 23:40:37.461351' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-12 23:40:37.462500' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-07-12 23:40:37.463445' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-07-12 23:40:37.467061' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (24.8ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:40:37.558824', "updated_at" = '2013-07-12 23:40:37.560107' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-12 23:40:37.574197' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:40:37.584889', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-12 23:40:37.586020' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-12 23:40:37.588935' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:40:37.591994', "updated_at" = '2013-07-12 23:40:37.593001' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:40:37.606345', "updated_at" = '2013-07-12 23:40:37.607571' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:40:37.615849', "updated_at" = '2013-07-12 23:40:37.616782' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-12 23:40:37.620606' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:40:37.622774', "updated_at" = '2013-07-12 23:40:37.623824' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-12 23:40:37.626912' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.0ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:18 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:18 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:18 UTC +00:00]]  (11.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:18 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:18 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:18 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:18 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:18 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:18 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:18 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:18 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:18 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:18 UTC +00:00]] SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Fri, 12 Jul 2013 23:45:18 UTC +00:00], ["deleter_id", 3], ["deleter_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 12 Jul 2013 23:45:18 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:45:18.764060' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:18 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:18 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:18 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Fri, 12 Jul 2013 23:45:18 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "updated_at" = '2013-07-12 23:45:19.775078' WHERE "commontator_comments"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:19 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:19 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:19 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:19 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Fri, 12 Jul 2013 23:45:19 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "updated_at" = '2013-07-12 23:45:20.786958' WHERE "commontator_comments"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:20 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:20 UTC +00:00]]  (8.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:20 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:20 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:20 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:20 UTC +00:00]]  (6.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:20 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:45:20 UTC +00:00]]  (4.8ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Fri, 12 Jul 2013 23:45:20 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (5.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:20 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:20 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:20 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:45:20 UTC +00:00]]  (4.9ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-12 23:45:20.869912' WHERE "commontator_subscriptions"."id" = 2  (5.0ms) commit transaction Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (23.1ms) Sent mail to (28ms) Date: Fri, 12 Jul 2013 18:45:20 -0500 From: no-reply@example.com Message-ID: <51e09510f2a94_49545c3ff08869@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:20 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:20 UTC +00:00]]  (8.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 3 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 3 LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.5ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 3], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 4 LIMIT 1  (5.4ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 5], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-07-12 23:45:21.099567' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (20.7ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-07-12 23:45:21.156232' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 11ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-07-12 23:45:21.174220' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_down" = 1, "updated_at" = '2013-07-12 23:45:21.178024' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-07-12 23:45:21.183360' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_down" = 0, "updated_at" = '2013-07-12 23:45:21.187079' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-07-12 23:45:21.204499' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 0, "cached_votes_up" = 0, "updated_at" = '2013-07-12 23:45:21.213496' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_up" = 0, "cached_votes_down" = 1, "updated_at" = '2013-07-12 23:45:21.229557' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_down" = 0, "updated_at" = '2013-07-12 23:45:21.238049' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 11ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:45:21.312575', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-07-12 23:45:21.314144' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:45:21.322684' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:45:21.328365', "updated_at" = '2013-07-12 23:45:21.329808' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:45:21.335881' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:45:21.337814', "updated_at" = '2013-07-12 23:45:21.339318' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:45:21.345046' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "updated_at" = '2013-07-12 23:45:21.361067' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 29ms (ActiveRecord: 0.5ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:45:21.417317', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-07-12 23:45:21.418756' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:45:21.427875' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:45:21.445709', "updated_at" = '2013-07-12 23:45:21.447118' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:45:21.461944', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-07-12 23:45:21.463045' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:45:21.469183' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:45:21.472358', "deleter_id" = 6, "updated_at" = '2013-07-12 23:45:21.473457' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:45:21.476145' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:45:21.479192', "updated_at" = '2013-07-12 23:45:21.480290' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:45:21.489538', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-07-12 23:45:21.490639' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:45:21.499991' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:45:21.505034', "deleter_id" = NULL, "deleter_type" = NULL, "updated_at" = '2013-07-12 23:45:21.506101' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:45:21.532087' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:45:21.532774', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-07-12 23:45:21.533964' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (1.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_down" = 1, "updated_at" = '2013-07-12 23:45:21.723244' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-07-12 23:45:21.739417' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-07-12 23:45:21.743200' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-07-12 23:45:21.748498' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_up" = 0, "updated_at" = '2013-07-12 23:45:21.752259' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (1.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 1], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-07-12 23:45:21.785680' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-07-12 23:45:21.786495' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 21ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-12 23:45:21.919786' WHERE "commontator_subscriptions"."id" = 5 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Fri, 12 Jul 2013 18:45:21 -0500 From: no-reply@example.com Message-ID: <51e09511e24d6_49545c3ff088720@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Fri, 12 Jul 2013 18:45:21 -0500 From: no-reply@example.com Message-ID: <51e09511e47bd_49545c3ff0888ca@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:45:21.947454', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-12 23:45:21.948600' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-12 23:45:21.950979' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:45:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-12 23:45:21.999574' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-12 23:45:22.000617' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-07-12 23:45:22.001504' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-07-12 23:45:22.005230' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (1.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 4]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-07-12 23:45:22.092151', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-12 23:45:22.092512' WHERE "commontator_threads"."id" = 4 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 5  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:45:22.119408', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-12 23:45:22.120601' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-12 23:45:22.123652' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:45:22.126245', "updated_at" = '2013-07-12 23:45:22.127272' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 20ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:45:22.159986', "updated_at" = '2013-07-12 23:45:22.161330' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:45:22.170317', "updated_at" = '2013-07-12 23:45:22.171300' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-12 23:45:22.175682' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:45:22.177479', "updated_at" = '2013-07-12 23:45:22.178759' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-12 23:45:22.183423' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:45:22.209784', "updated_at" = '2013-07-12 23:45:22.210803' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-12 23:45:22.220470' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.0ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:52 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:52 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:52 UTC +00:00]]  (13.4ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:52 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:52 UTC +00:00]]  (3.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:52 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:52 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:52 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:52 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:52 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:52 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Fri, 12 Jul 2013 23:45:52 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.2ms) UPDATE "commontator_comments" SET "body" = 'Something else', "updated_at" = '2013-07-12 23:45:53.683835' WHERE "commontator_comments"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:53 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:53 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:53 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:53 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Fri, 12 Jul 2013 23:45:53 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "updated_at" = '2013-07-12 23:45:54.698021' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:54 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Fri, 12 Jul 2013 23:45:54 UTC +00:00], ["deleter_id", 3], ["deleter_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 12 Jul 2013 23:45:54 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:45:54.708910' WHERE "commontator_comments"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:54 UTC +00:00]]  (8.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:54 UTC +00:00]]  (5.3ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:54 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:45:54 UTC +00:00]]  (6.0ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Fri, 12 Jul 2013 23:45:54 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (5.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:54 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:54 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:45:54 UTC +00:00]]  (4.8ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-12 23:45:54.794628' WHERE "commontator_subscriptions"."id" = 2  (4.5ms) commit transaction Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (22.8ms) Sent mail to (28ms) Date: Fri, 12 Jul 2013 18:45:54 -0500 From: no-reply@example.com Message-ID: <51e09532df8ee_495dff37f0979d9@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:54 UTC +00:00]]  (6.2ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 3 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:54 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 3 LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:54 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:45:54 UTC +00:00]]  (4.9ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:54 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 3], ["updated_at", Fri, 12 Jul 2013 23:45:54 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 4 LIMIT 1  (5.5ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:54 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:54 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 14ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:54 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:54 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-07-12 23:45:55.054741' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 41ms (ActiveRecord: 1.4ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-07-12 23:45:55.072010' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_down" = 1, "updated_at" = '2013-07-12 23:45:55.075823' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-07-12 23:45:55.081122' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_down" = 0, "updated_at" = '2013-07-12 23:45:55.084927' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_down" = 1, "updated_at" = '2013-07-12 23:45:55.134808' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-07-12 23:45:55.153678' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-07-12 23:45:55.157691' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-07-12 23:45:55.163021' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_up" = 0, "updated_at" = '2013-07-12 23:45:55.166785' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 19ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "updated_at" = '2013-07-12 23:45:55.221091' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.9ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:45:55.387466', "updated_at" = '2013-07-12 23:45:55.388947' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:45:55.404417', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-07-12 23:45:55.406183' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:45:55.414602' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:45:55.419896', "deleter_id" = 6, "updated_at" = '2013-07-12 23:45:55.421310' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:45:55.424037' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:45:55.427076', "updated_at" = '2013-07-12 23:45:55.428180' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:45:55.445436', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-07-12 23:45:55.446860' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:45:55.455927' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:45:55.469057', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-07-12 23:45:55.470618' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 20ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:45:55.498809' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:45:55.504062', "deleter_id" = NULL, "deleter_type" = NULL, "updated_at" = '2013-07-12 23:45:55.505364' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:45:55.513373' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:45:55.513953', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-07-12 23:45:55.515047' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:45:55.554749', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-07-12 23:45:55.556048' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:45:55.562799' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:45:55.568281', "updated_at" = '2013-07-12 23:45:55.569508' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:45:55.574967' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:45:55.576813', "updated_at" = '2013-07-12 23:45:55.578044' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:45:55.583489' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-07-12 23:45:55.601005' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 0, "cached_votes_up" = 0, "updated_at" = '2013-07-12 23:45:55.611959' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 12ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.9ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 28ms (ActiveRecord: 1.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_up" = 0, "cached_votes_down" = 1, "updated_at" = '2013-07-12 23:45:55.654717' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_down" = 0, "updated_at" = '2013-07-12 23:45:55.663415' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 5], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-07-12 23:45:55.680814' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (1.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 1], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-07-12 23:45:55.731029' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-07-12 23:45:55.732120' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.6ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-12 23:45:55.874238' WHERE "commontator_subscriptions"."id" = 5 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Fri, 12 Jul 2013 18:45:55 -0500 From: no-reply@example.com Message-ID: <51e09533d734f_495dff37f098030@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Fri, 12 Jul 2013 18:45:55 -0500 From: no-reply@example.com Message-ID: <51e09533d9b08_495dff37f098152@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-12 23:45:55.913836' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-12 23:45:55.914848' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-07-12 23:45:55.916265' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-07-12 23:45:55.921360' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (25.6ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:45:55.971481', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-12 23:45:55.972500' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-12 23:45:55.974242' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 4]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-07-12 23:45:56.031706', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-12 23:45:56.032055' WHERE "commontator_threads"."id" = 4 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 5  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:45:56.050635', "updated_at" = '2013-07-12 23:45:56.051991' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-12 23:45:56.057510' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:45:56.059253', "updated_at" = '2013-07-12 23:45:56.060175' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-12 23:45:56.063882' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:45:56.073944', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-12 23:45:56.075093' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-12 23:45:56.078019' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:45:56.080575', "updated_at" = '2013-07-12 23:45:56.081581' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:45:56.108306', "updated_at" = '2013-07-12 23:45:56.109503' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-12 23:45:56.118991' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:45:56.137321', "updated_at" = '2013-07-12 23:45:56.138818' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:45:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.0ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:22 UTC +00:00]]  (11.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:22 UTC +00:00]]  (4.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:47:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Fri, 12 Jul 2013 23:47:22 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.2ms) UPDATE "commontator_comments" SET "body" = 'Something else', "updated_at" = '2013-07-12 23:47:23.211394' WHERE "commontator_comments"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:23 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:23 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:23 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:47:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Fri, 12 Jul 2013 23:47:23 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "updated_at" = '2013-07-12 23:47:24.229359' WHERE "commontator_comments"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["deleter_id", 3], ["deleter_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:47:24.240530' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (10.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (5.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (5.5ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (5.3ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (5.0ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.2ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-12 23:47:24.325839' WHERE "commontator_subscriptions"."id" = 2  (4.6ms) commit transaction Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (22.8ms) Sent mail to (28ms) Date: Fri, 12 Jul 2013 18:47:24 -0500 From: no-reply@example.com Message-ID: <51e0958c6d3ac_4982742fe831073@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (6.5ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 3 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 3 LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 3], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 4 LIMIT 1  (5.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-07-12 23:47:24.524917' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 0, "cached_votes_up" = 0, "updated_at" = '2013-07-12 23:47:24.537130' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 11ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_up" = 0, "cached_votes_down" = 1, "updated_at" = '2013-07-12 23:47:24.554325' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_down" = 0, "updated_at" = '2013-07-12 23:47:24.562820' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:47:24.630562', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-07-12 23:47:24.632320' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:47:24.639726' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:47:24.643512', "deleter_id" = 6, "updated_at" = '2013-07-12 23:47:24.644604' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:47:24.647293' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:47:24.650366', "updated_at" = '2013-07-12 23:47:24.651461' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:47:24.662534', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-07-12 23:47:24.664108' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:47:24.675973' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:47:24.680960', "deleter_id" = NULL, "deleter_type" = NULL, "updated_at" = '2013-07-12 23:47:24.682018' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:47:24.689314' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:47:24.689886', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-07-12 23:47:24.690935' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:47:24.774217', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-07-12 23:47:24.775786' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:47:24.786143' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:47:24.842991', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-07-12 23:47:24.844158' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:47:24.852979' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:47:24.858316', "updated_at" = '2013-07-12 23:47:24.859485' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:47:24.864692' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:47:24.866484', "updated_at" = '2013-07-12 23:47:24.867692' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:47:24.872377' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (1.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 5], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-07-12 23:47:24.933707' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:24 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_down" = 1, "updated_at" = '2013-07-12 23:47:24.971893' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 11ms (ActiveRecord: 1.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-07-12 23:47:24.988193' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-07-12 23:47:24.991979' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-07-12 23:47:24.997261' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_up" = 0, "updated_at" = '2013-07-12 23:47:25.001040' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "updated_at" = '2013-07-12 23:47:25.056643' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 24ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:47:25.085650', "updated_at" = '2013-07-12 23:47:25.087225' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-07-12 23:47:25.112180' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-07-12 23:47:25.129466' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_down" = 1, "updated_at" = '2013-07-12 23:47:25.133406' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-07-12 23:47:25.139436' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_down" = 0, "updated_at" = '2013-07-12 23:47:25.143440' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (23.0ms) begin transaction  (0.8ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (3.7ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 1], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-07-12 23:47:25.246488' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-07-12 23:47:25.247281' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-12 23:47:25.384628' WHERE "commontator_subscriptions"."id" = 5 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (4ms) Date: Fri, 12 Jul 2013 18:47:25 -0500 From: no-reply@example.com Message-ID: <51e0958d5fab2_4982742fe8311ea@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Fri, 12 Jul 2013 18:47:25 -0500 From: no-reply@example.com Message-ID: <51e0958d62bae_4982742fe831212@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 4]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-07-12 23:47:25.420375', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-12 23:47:25.420760' WHERE "commontator_threads"."id" = 4 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 5  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.9ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-12 23:47:25.486877' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-12 23:47:25.487800' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-07-12 23:47:25.488643' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-07-12 23:47:25.492105' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:47:25.498991', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-12 23:47:25.500007' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-12 23:47:25.501722' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:47:25.598163', "updated_at" = '2013-07-12 23:47:25.599391' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:47:25.627756', "updated_at" = '2013-07-12 23:47:25.628726' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-12 23:47:25.639313' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:47:25.648507', "updated_at" = '2013-07-12 23:47:25.649696' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-12 23:47:25.653929' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:47:25.655661', "updated_at" = '2013-07-12 23:47:25.656809' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-12 23:47:25.660543' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:47:25.670072', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-12 23:47:25.671937' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-12 23:47:25.676125' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:47:25.679530', "updated_at" = '2013-07-12 23:47:25.681111' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:47:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (2.9ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:22 UTC +00:00]]  (12.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:22 UTC +00:00]]  (3.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:22 UTC +00:00]] SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:51:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Fri, 12 Jul 2013 23:51:22 UTC +00:00], ["deleter_id", 3], ["deleter_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 12 Jul 2013 23:51:22 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:51:22.167943' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:51:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Fri, 12 Jul 2013 23:51:22 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.2ms) UPDATE "commontator_comments" SET "body" = 'Something else', "updated_at" = '2013-07-12 23:51:23.209219' WHERE "commontator_comments"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:23 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:23 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:23 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:51:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Fri, 12 Jul 2013 23:51:23 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "updated_at" = '2013-07-12 23:51:24.228491' WHERE "commontator_comments"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]]  (8.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]]  (5.4ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (5.2ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]]  (4.2ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 3 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 3 LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.5ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.5ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 3], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (5.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 3 LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.5ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]]  (4.9ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 3 LIMIT 1 DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 3 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 4 LIMIT 1  (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-12 23:51:24.359059' WHERE "commontator_subscriptions"."id" = 3  (5.0ms) commit transaction Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (22.9ms) Sent mail to (28ms) Date: Fri, 12 Jul 2013 18:51:24 -0500 From: no-reply@example.com Message-ID: <51e0967c76c11_49a97bffe8154f@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 3 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 3:

Something

Click here to visit this thread.

 (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:51:24.506671', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-07-12 23:51:24.507968' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:51:24.514949' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:51:24.518817', "deleter_id" = 6, "updated_at" = '2013-07-12 23:51:24.519989' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:51:24.522758' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:51:24.525822', "updated_at" = '2013-07-12 23:51:24.526924' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 5], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-07-12 23:51:24.551496' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 23ms (ActiveRecord: 0.2ms)  (0.2ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-07-12 23:51:24.629604' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 0, "cached_votes_up" = 0, "updated_at" = '2013-07-12 23:51:24.638891' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_up" = 0, "cached_votes_down" = 1, "updated_at" = '2013-07-12 23:51:24.654899' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_down" = 0, "updated_at" = '2013-07-12 23:51:24.663415' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 8ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-07-12 23:51:24.713161' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-07-12 23:51:24.748049' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_down" = 1, "updated_at" = '2013-07-12 23:51:24.751999' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-07-12 23:51:24.757406' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_down" = 0, "updated_at" = '2013-07-12 23:51:24.761333' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:51:24.796726', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-07-12 23:51:24.798305' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:51:24.810014' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:51:24.815992', "deleter_id" = NULL, "deleter_type" = NULL, "updated_at" = '2013-07-12 23:51:24.817534' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 26ms (ActiveRecord: 0.2ms)  (0.9ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:51:24.850315' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:51:24.850911', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-07-12 23:51:24.851957' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:51:24.872029', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-07-12 23:51:24.873455' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:51:24.882466' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "updated_at" = '2013-07-12 23:51:24.899924' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 7ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:51:24.953049', "updated_at" = '2013-07-12 23:51:24.954471' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 20ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:51:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_down" = 1, "updated_at" = '2013-07-12 23:51:25.078359' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-07-12 23:51:25.095481' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_total" = 1, "cached_votes_up" = 1, "updated_at" = '2013-07-12 23:51:25.099743' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-07-12 23:51:25.105702' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (1.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "cached_votes_up" = 0, "updated_at" = '2013-07-12 23:51:25.133221' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 34ms (ActiveRecord: 1.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:51:25.167803', "deleter_id" = 5, "deleter_type" = 'DummyUser', "updated_at" = '2013-07-12 23:51:25.168955' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:51:25.175207' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:51:25.179792', "updated_at" = '2013-07-12 23:51:25.180888' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:51:25.185215' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-12 23:51:25.186684', "updated_at" = '2013-07-12 23:51:25.187771' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-12 23:51:25.192009' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (3.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 1], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-07-12 23:51:25.212504' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-07-12 23:51:25.213267' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-12 23:51:25.346228' WHERE "commontator_subscriptions"."id" = 5 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Fri, 12 Jul 2013 18:51:25 -0500 From: no-reply@example.com Message-ID: <51e0967d56544_49a97bffe81635@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Fri, 12 Jul 2013 18:51:25 -0500 From: no-reply@example.com Message-ID: <51e0967d587f7_49a97bffe817be@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-12 23:51:25.391874' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-12 23:51:25.392843' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-07-12 23:51:25.393716' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (23.8ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-07-12 23:51:25.421407' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:51:25.428404', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-12 23:51:25.429398' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-12 23:51:25.431108' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 4]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-07-12 23:51:25.477677', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-12 23:51:25.478022' WHERE "commontator_threads"."id" = 4 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 5  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:51:25.506597', "updated_at" = '2013-07-12 23:51:25.507551' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-12 23:51:25.512415' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:51:25.514132', "updated_at" = '2013-07-12 23:51:25.515058' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-12 23:51:25.518785' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:51:25.532960', "updated_at" = '2013-07-12 23:51:25.552603' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:51:25.562485', "updated_at" = '2013-07-12 23:51:25.563521' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-12 23:51:25.572807' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:51:25.605185', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-12 23:51:25.606493' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-12 23:51:25.609672' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-12 23:51:25.611911', "updated_at" = '2013-07-12 23:51:25.612977' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 23:51:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:34 UTC +00:00]]  (12.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:34 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:34 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:34:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Sat, 13 Jul 2013 00:34:34 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:35 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:34:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Sat, 13 Jul 2013 00:34:35 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:36 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:36 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:36 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:36 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:36 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:34:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Sat, 13 Jul 2013 00:34:36 UTC +00:00], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Sat, 13 Jul 2013 00:34:36 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 00:34:36.967363' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:36 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:36 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:36 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:36 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:36 UTC +00:00]]  (8.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:36 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:36 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:36 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (6.0ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 2], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (5.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (4.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 3 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 3 LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.5ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 3], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (5.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 3 LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.5ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (4.7ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 3 LIMIT 1 DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 3 LIMIT 1 DummyUser Load (0.2ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 4 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-13 00:34:37.095124' WHERE "commontator_subscriptions"."id" = 3  (5.0ms) commit transaction Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (23.3ms) Sent mail to (28ms) Date: Fri, 12 Jul 2013 19:34:37 -0500 From: no-reply@example.com Message-ID: <51e0a09d35c01_4b90f2efe0918bf@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 3 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 3:

Something

Click here to visit this thread.

 (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 11ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (20.3ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 30ms (ActiveRecord: 21.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:34:37.324460', "updated_at" = '2013-07-13 00:34:37.326099' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 7ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-07-13 00:34:37.412979' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-07-13 00:34:37.422061' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:34:37.455619', "updated_at" = '2013-07-13 00:34:37.457019' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (23.5ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 26ms (ActiveRecord: 23.7ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:34:37.559987', "updated_at" = '2013-07-13 00:34:37.561756' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-07-13 00:34:37.614663' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-07-13 00:34:37.623750' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:34:37.764897', "updated_at" = '2013-07-13 00:34:37.766750' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 00:34:37.777308' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:34:37.802080', "updated_at" = '2013-07-13 00:34:37.803610' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 5], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.9ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "updated_at" = '2013-07-13 00:34:37.875667' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "updated_at" = '2013-07-13 00:34:37.881777' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "updated_at" = '2013-07-13 00:34:37.887583' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (3.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 1], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-07-13 00:34:37.908991' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-07-13 00:34:37.909770' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-13 00:34:38.042668' WHERE "commontator_subscriptions"."id" = 5 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Fri, 12 Jul 2013 19:34:38 -0500 From: no-reply@example.com Message-ID: <51e0a09ec323_4b90f2efe0919d4@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Fri, 12 Jul 2013 19:34:38 -0500 From: no-reply@example.com Message-ID: <51e0a09ee680_4b90f2efe09201a@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 4]]  (1.0ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-07-13 00:34:38.155971', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-13 00:34:38.156459' WHERE "commontator_threads"."id" = 4 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 5  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "deleter_id", "deleter_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["deleter_id", nil], ["deleter_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-13 00:34:38.204978' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-13 00:34:38.205965' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-07-13 00:34:38.206836' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-07-13 00:34:38.210251' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:34:38.217129', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-13 00:34:38.218158' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 00:34:38.219901' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:34:38.226119', "updated_at" = '2013-07-13 00:34:38.227053' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 00:34:38.231878' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:34:38.233637', "updated_at" = '2013-07-13 00:34:38.234551' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 00:34:38.238473' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:34:38.285710', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-13 00:34:38.287020' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 00:34:38.290503' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:34:38.293717', "updated_at" = '2013-07-13 00:34:38.294915' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:34:38.309104', "updated_at" = '2013-07-13 00:34:38.310333' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:34:38.332074', "updated_at" = '2013-07-13 00:34:38.333416' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 00:34:38.343188' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.0ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:40 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:40 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:40 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:40 UTC +00:00]]  (12.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:40 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:40 UTC +00:00]]  (5.4ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:40 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:40 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:40 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:40 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:35:40 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Sat, 13 Jul 2013 00:35:40 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:41 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:41 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:41 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:35:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Sat, 13 Jul 2013 00:35:41 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 00:35:42.463968' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]]  (10.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]]  (4.9ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (5.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]]  (5.1ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-13 00:35:42.545032' WHERE "commontator_subscriptions"."id" = 2  (4.2ms) commit transaction Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (23.3ms) Sent mail to (28ms) Date: Fri, 12 Jul 2013 19:35:42 -0500 From: no-reply@example.com Message-ID: <51e0a0dea2ae6_4ba611a7fec48e@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]]  (5.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 3 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 3 LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.5ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]]  (4.9ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 3], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 4 LIMIT 1  (5.5ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:35:42.727080', "editor_id" = 5, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 00:35:42.728593' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 8ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 19ms (ActiveRecord: 1.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 30ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-07-13 00:35:42.798388' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-07-13 00:35:42.807777' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-07-13 00:35:42.849211' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-07-13 00:35:42.858370' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 5], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:35:42.948686', "editor_id" = 5, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 00:35:42.950191' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 00:35:42.960712' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 8ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (23.4ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 5, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-07-13 00:35:43.169411' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:35:43.198176', "editor_id" = 5, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 00:35:43.199918' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 22ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 00:35:43.227201' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:35:43.240126', "editor_id" = 5, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 00:35:43.241321' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 00:35:43.247843' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:35:43.252964', "updated_at" = '2013-07-13 00:35:43.254359' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 00:35:43.260418' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:35:43.262971', "updated_at" = '2013-07-13 00:35:43.264848' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 00:35:43.271223' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 8ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:35:43.325222', "updated_at" = '2013-07-13 00:35:43.327325' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] Commontator::Subscription Load (26.4ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (3.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 1], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-07-13 00:35:43.447422' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-07-13 00:35:43.448236' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 25ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-13 00:35:43.584675' WHERE "commontator_subscriptions"."id" = 5 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Fri, 12 Jul 2013 19:35:43 -0500 From: no-reply@example.com Message-ID: <51e0a0df908ab_4ba611a7fec5f1@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Fri, 12 Jul 2013 19:35:43 -0500 From: no-reply@example.com Message-ID: <51e0a0df92d03_4ba611a7fec629@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:35:43.612391', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-13 00:35:43.613642' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 00:35:43.615650' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-13 00:35:43.705201' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-13 00:35:43.706122' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-07-13 00:35:43.706965' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-07-13 00:35:43.710360' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 4]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-07-13 00:35:43.734088', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-13 00:35:43.734436' WHERE "commontator_threads"."id" = 4 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 5  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:35:43.785889', "updated_at" = '2013-07-13 00:35:43.787185' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:35:43.796317', "updated_at" = '2013-07-13 00:35:43.797347' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 00:35:43.807248' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:35:43.818600', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-13 00:35:43.819797' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 00:35:43.823081' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:35:43.825514', "updated_at" = '2013-07-13 00:35:43.826915' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:35:43.854382', "updated_at" = '2013-07-13 00:35:43.855652' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 00:35:43.859833' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:35:43.861670', "updated_at" = '2013-07-13 00:35:43.862868' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 00:35:43.866784' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:35:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:23 UTC +00:00]]  (14.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:23 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:23 UTC +00:00]] SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:41:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Sat, 13 Jul 2013 00:41:23 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 13 Jul 2013 00:41:23 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 00:41:23.963212' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:41:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Sat, 13 Jul 2013 00:41:23 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 00:41:23.973377' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:41:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Sat, 13 Jul 2013 00:41:23 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 00:41:23.982525' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:23 UTC +00:00]]  (8.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (4.9ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (5.5ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (4.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 3 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 3 LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (5.2ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.5ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 3], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 3 LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (5.3ms) commit transaction Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 3 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 3 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 4 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-13 00:41:24.106257' WHERE "commontator_subscriptions"."id" = 3  (5.8ms) commit transaction Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (23.5ms) Sent mail to (29ms) Date: Fri, 12 Jul 2013 19:41:24 -0500 From: no-reply@example.com Message-ID: <51e0a2343a0fc_4c01627ff0687b@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 3 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 3:

Something

Click here to visit this thread.

 (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:41:24.258744', "editor_id" = 5, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 00:41:24.260093' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 8ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 00:41:24.267278' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:41:24.271154', "editor_id" = 6, "updated_at" = '2013-07-13 00:41:24.272374' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 00:41:24.275135' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:41:24.278218', "updated_at" = '2013-07-13 00:41:24.279375' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:41:24.375910', "editor_id" = 5, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 00:41:24.377071' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 00:41:24.383777' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:41:24.388490', "updated_at" = '2013-07-13 00:41:24.389592' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 00:41:24.395139' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:41:24.396693', "updated_at" = '2013-07-13 00:41:24.397792' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 00:41:24.402675' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-07-13 00:41:24.550767' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.9ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-07-13 00:41:24.583748' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:41:24.598505', "editor_id" = 5, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 00:41:24.599722' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 00:41:24.608859' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-07-13 00:41:24.650396' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-07-13 00:41:24.659398' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 5], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 5ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:41:24.755699', "updated_at" = '2013-07-13 00:41:24.757287' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.3ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.8ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 5, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-07-13 00:41:24.861661' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:41:24.910698', "editor_id" = 5, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 00:41:24.912151' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 00:41:24.939807' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (3.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 1], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-07-13 00:41:24.964617' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-07-13 00:41:24.965498' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:41:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-13 00:41:25.101701' WHERE "commontator_subscriptions"."id" = 5 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Fri, 12 Jul 2013 19:41:25 -0500 From: no-reply@example.com Message-ID: <51e0a23520ad3_4c01627ff06881@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Fri, 12 Jul 2013 19:41:25 -0500 From: no-reply@example.com Message-ID: <51e0a23522c6c_4c01627ff06897b@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:41:25.171457', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-13 00:41:25.172460' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.0ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 00:41:25.174217' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 4]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-07-13 00:41:25.187748', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-13 00:41:25.188079' WHERE "commontator_threads"."id" = 4 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 5  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-13 00:41:25.248304' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-13 00:41:25.249369' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-07-13 00:41:25.250356' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-07-13 00:41:25.253980' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:41:25.278530', "updated_at" = '2013-07-13 00:41:25.279554' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 00:41:25.284833' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:41:25.286741', "updated_at" = '2013-07-13 00:41:25.287901' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 00:41:25.292248' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:41:25.327671', "updated_at" = '2013-07-13 00:41:25.329081' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:41:25.340619', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-13 00:41:25.342066' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 00:41:25.345794' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:41:25.348704', "updated_at" = '2013-07-13 00:41:25.350178' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:41:25.377723', "updated_at" = '2013-07-13 00:41:25.379230' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 00:41:25.389213' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (1.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (13.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (4.2ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]] SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 00:43:08.269775' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 00:43:08.279490' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (6.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (3.7ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (4.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (3.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 3 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 3 LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 3], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (5.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 3 LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.5ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (4.9ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 3 LIMIT 1 DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 3 LIMIT 1 DummyUser Load (0.2ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 4 LIMIT 1  (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-13 00:43:08.423996' WHERE "commontator_subscriptions"."id" = 3  (4.6ms) commit transaction Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (23.3ms) Sent mail to (28ms) Date: Fri, 12 Jul 2013 19:43:08 -0500 From: no-reply@example.com Message-ID: <51e0a29c873f1_4c2aedffe44778e@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 3 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 3:

Something

Click here to visit this thread.

 (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:43:08.597591', "editor_id" = 5, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 00:43:08.598878' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 500 Internal Server Error in 4ms  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 5, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-07-13 00:43:08.619287' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 7ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 8ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-07-13 00:43:08.874091' WHERE "votes"."id" = 1  (22.4ms) RELEASE SAVEPOINT active_record_1  (1.2ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-07-13 00:43:08.907913' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 5], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:43:08.956684', "editor_id" = 5, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 00:43:08.957984' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:43:08.970979', "editor_id" = 5, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 00:43:08.972253' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:43:08 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:43:08.995711', "editor_id" = 5, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 00:43:08.997164' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 11ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-07-13 00:43:09.060358' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-07-13 00:43:09.069937' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:43:09.092192', "updated_at" = '2013-07-13 00:43:09.093645' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (3.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 1], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-07-13 00:43:09.267517' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-07-13 00:43:09.268332' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 22ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-13 00:43:09.404043' WHERE "commontator_subscriptions"."id" = 5 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Fri, 12 Jul 2013 19:43:09 -0500 From: no-reply@example.com Message-ID: <51e0a29d6479c_4c2aedffe447866@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Fri, 12 Jul 2013 19:43:09 -0500 From: no-reply@example.com Message-ID: <51e0a29d66b2c_4c2aedffe447934@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (1.4ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-13 00:43:09.544920' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-13 00:43:09.545866' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-07-13 00:43:09.546730' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-07-13 00:43:09.550211' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:43:09.557353', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-13 00:43:09.558422' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 00:43:09.560204' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 4]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-07-13 00:43:09.578875', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-13 00:43:09.579218' WHERE "commontator_threads"."id" = 4 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 5  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:43:09.598449', "updated_at" = '2013-07-13 00:43:09.599688' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:43:09.608172', "updated_at" = '2013-07-13 00:43:09.609125' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 00:43:09.619078' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:43:09.640594', "updated_at" = '2013-07-13 00:43:09.661055' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 00:43:09.665373' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:43:09.667134', "updated_at" = '2013-07-13 00:43:09.668341' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 00:43:09.672479' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:43:09.701734', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-13 00:43:09.703123' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 00:43:09.706464' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:43:09.709138', "updated_at" = '2013-07-13 00:43:09.710416' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:43:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]]  (14.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]]  (5.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 00:44:34.525096' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 00:44:34.535193' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 00:44:34.545326' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]]  (8.4ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]]  (4.0ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (4.3ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]]  (3.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 3 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 3 LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]]  (4.7ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 3], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (4.6ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 3 LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]]  (5.1ms) commit transaction Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 3 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 3 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 4 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-13 00:44:34.644826' WHERE "commontator_subscriptions"."id" = 3  (4.5ms) commit transaction Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (23.8ms) Sent mail to (29ms) Date: Fri, 12 Jul 2013 19:44:34 -0500 From: no-reply@example.com Message-ID: <51e0a2f2bcb55_4c4a675fe8196b6@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 3 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 3:

Something

Click here to visit this thread.

 (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 5], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (21.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:34 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-07-13 00:44:34.980709' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-07-13 00:44:35.007871' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 28ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-07-13 00:44:35.053087' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-07-13 00:44:35.062995' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 31ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.5ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 5, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-07-13 00:44:35.236911' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 24ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:44:35.309671', "editor_id" = 5, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 00:44:35.311068' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:44:35.378714', "updated_at" = '2013-07-13 00:44:35.380221' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 26ms (ActiveRecord: 0.1ms)  (1.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (3.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 1], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-07-13 00:44:35.429423' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-07-13 00:44:35.430218' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-13 00:44:35.561933' WHERE "commontator_subscriptions"."id" = 5 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Fri, 12 Jul 2013 19:44:35 -0500 From: no-reply@example.com Message-ID: <51e0a2f38afff_4c4a675fe8197c2@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Fri, 12 Jul 2013 19:44:35 -0500 From: no-reply@example.com Message-ID: <51e0a2f38d2fe_4c4a675fe8198aa@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:44:35.595090', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-13 00:44:35.596501' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 00:44:35.598742' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 4]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-07-13 00:44:35.609553', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-13 00:44:35.610012' WHERE "commontator_threads"."id" = 4 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 5  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (24.7ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.5ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-13 00:44:35.741941' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-13 00:44:35.742884' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-07-13 00:44:35.743749' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-07-13 00:44:35.747177' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:44:35.758229', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-13 00:44:35.759398' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 00:44:35.762455' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:44:35.765071', "updated_at" = '2013-07-13 00:44:35.766118' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:44:35.798473', "updated_at" = '2013-07-13 00:44:35.799734' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:44:35.808126', "updated_at" = '2013-07-13 00:44:35.809119' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 00:44:35.813316' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:44:35.815020', "updated_at" = '2013-07-13 00:44:35.815984' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 00:44:35.819723' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:44:35.838451', "updated_at" = '2013-07-13 00:44:35.859103' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 00:44:35.869339' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:44:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00]]  (12.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00]]  (4.6ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00]] SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 00:46:51.856852' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 00:46:51.868055' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 00:46:51.879427' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00]]  (7.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00]]  (5.4ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (4.2ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00]]  (3.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 3 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 3 LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.7ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 3], ["updated_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 DummyUser Load (0.2ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (5.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 3 LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.5ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:46:51 UTC +00:00]]  (4.9ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 3 LIMIT 1 DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 3 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 4 LIMIT 1  (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-13 00:46:51.997221' WHERE "commontator_subscriptions"."id" = 3  (5.7ms) commit transaction Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (23.4ms) Sent mail to (29ms) Date: Fri, 12 Jul 2013 19:46:52 -0500 From: no-reply@example.com Message-ID: <51e0a37c1e5bf_4c5bb8efe8717a@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 3 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 3:

Something

Click here to visit this thread.

 (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 5], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.2ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 13ms (ActiveRecord: 1.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 27ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:46:52.380240', "editor_id" = 5, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 00:46:52.381933' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 00:46:52.393174' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.3ms) SQL (0.1ms) DELETE FROM "commontator_comments" WHERE "commontator_comments"."id" = 3  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 29ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:46:52.486740', "editor_id" = 5, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 00:46:52.488264' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 00:46:52.497668' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:46:52.537730', "editor_id" = 5, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 00:46:52.538914' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 00:46:52.544990' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:46:52.548086', "editor_id" = 6, "updated_at" = '2013-07-13 00:46:52.549239' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 5, "updated_at" = '2013-07-13 00:46:52.552059' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:46:52.555101', "editor_id" = 6, "updated_at" = '2013-07-13 00:46:52.556280' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:46:52.571283', "updated_at" = '2013-07-13 00:46:52.572697' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 5, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-07-13 00:46:52.608636' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-07-13 00:46:52.709327' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-07-13 00:46:52.719531' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (23.9ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.2ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 35ms (ActiveRecord: 24.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:46:52.759334', "editor_id" = 5, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 00:46:52.760529' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 00:46:52.766954' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:46:52.771549', "updated_at" = '2013-07-13 00:46:52.772676' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 6, "updated_at" = '2013-07-13 00:46:52.777204' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:46:52.778760', "editor_id" = 5, "updated_at" = '2013-07-13 00:46:52.780007' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 6, "updated_at" = '2013-07-13 00:46:52.784636' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-07-13 00:46:52.819834' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-07-13 00:46:52.828896' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (20.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 1], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-07-13 00:46:52.885027' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-07-13 00:46:52.885820' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-13 00:46:53.023876' WHERE "commontator_subscriptions"."id" = 5 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Fri, 12 Jul 2013 19:46:53 -0500 From: no-reply@example.com Message-ID: <51e0a37dd800_4c5bb8efe8718c5@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (1.3ms) RELEASE SAVEPOINT active_record_1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Fri, 12 Jul 2013 19:46:53 -0500 From: no-reply@example.com Message-ID: <51e0a37dffb9_4c5bb8efe871973@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-13 00:46:53.101365' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-13 00:46:53.102311' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-07-13 00:46:53.103204' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-07-13 00:46:53.106597' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 4]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-07-13 00:46:53.153038', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-13 00:46:53.153386' WHERE "commontator_threads"."id" = 4 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 5  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:46:53.192914', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-13 00:46:53.194347' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 00:46:53.196611' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:46:53.220623', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-13 00:46:53.221942' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 00:46:53.225376' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:46:53.228442', "updated_at" = '2013-07-13 00:46:53.229814' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:46:53.237194', "updated_at" = '2013-07-13 00:46:53.238424' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 00:46:53.242956' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:46:53.244728', "updated_at" = '2013-07-13 00:46:53.245989' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 00:46:53.250813' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:46:53.258343', "updated_at" = '2013-07-13 00:46:53.259662' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 00:46:53.269388' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 20ms (ActiveRecord: 0.2ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:46:53.306689', "updated_at" = '2013-07-13 00:46:53.308302' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:46:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (12.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (4.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 00:49:22.165093' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 00:49:22.175299' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 00:49:22.185775' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (7.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (3.8ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (5.3ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.5ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (4.7ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.2ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-13 00:49:22.260361' WHERE "commontator_subscriptions"."id" = 2  (5.0ms) commit transaction Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (24.2ms) Sent mail to (29ms) Date: Fri, 12 Jul 2013 19:49:22 -0500 From: no-reply@example.com Message-ID: <51e0a4125fadd_4c6da92fe014645@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (7.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 3 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 3 LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (4.8ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 3], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 4 LIMIT 1  (5.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:49:22.485163', "editor_id" = 5, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 00:49:22.486655' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 00:49:22.497482' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 30ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:49:22.564971', "editor_id" = 5, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 00:49:22.566177' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 00:49:22.572218' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:49:22.575275', "editor_id" = 6, "updated_at" = '2013-07-13 00:49:22.576422' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 5, "updated_at" = '2013-07-13 00:49:22.579255' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:49:22.582438', "editor_id" = 6, "updated_at" = '2013-07-13 00:49:22.583621' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 22ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-07-13 00:49:22.633428' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-07-13 00:49:22.642524' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 5], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.6ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 29ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 5, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-07-13 00:49:22.793341' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:49:22.836426', "updated_at" = '2013-07-13 00:49:22.837899' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-07-13 00:49:22.875347' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-07-13 00:49:22.903222' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 29ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (1.5ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 29ms (ActiveRecord: 1.7ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:49:23.099953', "editor_id" = 5, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 00:49:23.101155' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 00:49:23.108293' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:49:23.113133', "updated_at" = '2013-07-13 00:49:23.114262' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 6, "updated_at" = '2013-07-13 00:49:23.119631' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:49:23.121181', "editor_id" = 5, "updated_at" = '2013-07-13 00:49:23.122303' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 6, "updated_at" = '2013-07-13 00:49:23.126779' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:49:23.148571', "editor_id" = 5, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 00:49:23.149884' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 00:49:23.159373' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:49:23.164425', "updated_at" = '2013-07-13 00:49:23.165578' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 00:49:23.171208' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (3.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 1], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-07-13 00:49:23.192175' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-07-13 00:49:23.192950' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-13 00:49:23.329467' WHERE "commontator_subscriptions"."id" = 5 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Fri, 12 Jul 2013 19:49:23 -0500 From: no-reply@example.com Message-ID: <51e0a413570e2_4c6da92fe01473@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Fri, 12 Jul 2013 19:49:23 -0500 From: no-reply@example.com Message-ID: <51e0a41359539_4c6da92fe01489f@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-13 00:49:23.456215' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-13 00:49:23.457162' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-07-13 00:49:23.458031' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-07-13 00:49:23.461537' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 4]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-07-13 00:49:23.472561', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-13 00:49:23.472911' WHERE "commontator_threads"."id" = 4 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 5  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:49:23.498961', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-13 00:49:23.519724' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 00:49:23.522153' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:49:23.547485', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-13 00:49:23.548874' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 00:49:23.552081' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:49:23.554859', "updated_at" = '2013-07-13 00:49:23.555953' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:49:23.563498', "updated_at" = '2013-07-13 00:49:23.564852' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 00:49:23.569367' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:49:23.571364', "updated_at" = '2013-07-13 00:49:23.572565' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 00:49:23.577172' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:49:23.604572', "updated_at" = '2013-07-13 00:49:23.605593' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 00:49:23.615403' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 21ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:49:23.652289', "updated_at" = '2013-07-13 00:49:23.653694' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]]  (12.4ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 00:49:58.469511' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 00:49:58.480741' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.2ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 00:49:58.509638' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]]  (6.4ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]]  (5.2ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (5.4ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 3 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 3 LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.5ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]]  (5.4ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.5ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 3], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (5.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 3 LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.5ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]]  (4.9ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 3 LIMIT 1 DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 3 LIMIT 1 DummyUser Load (0.2ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 4 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-13 00:49:58.645915' WHERE "commontator_subscriptions"."id" = 3  (4.6ms) commit transaction Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (23.7ms) Sent mail to (29ms) Date: Fri, 12 Jul 2013 19:49:58 -0500 From: no-reply@example.com Message-ID: <51e0a436bc97e_4c7b38f7e888eb@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 3 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 3:

Something

Click here to visit this thread.

 (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 23ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-07-13 00:49:58.878485' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-07-13 00:49:58.887655' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:58 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 23ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:49:59.050951', "editor_id" = 5, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 00:49:59.052463' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 00:49:59.059775' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:49:59.065036', "updated_at" = '2013-07-13 00:49:59.066427' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 6, "updated_at" = '2013-07-13 00:49:59.072398' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:49:59.074296', "editor_id" = 5, "updated_at" = '2013-07-13 00:49:59.075749' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 6, "updated_at" = '2013-07-13 00:49:59.081524' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (23.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 5, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-07-13 00:49:59.120642' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:49:59.165698', "editor_id" = 5, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 00:49:59.167219' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 00:49:59.176509' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:49:59.192070', "editor_id" = 5, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 00:49:59.193235' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 00:49:59.199261' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:49:59.202402', "editor_id" = 6, "updated_at" = '2013-07-13 00:49:59.203668' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 5, "updated_at" = '2013-07-13 00:49:59.206545' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:49:59.209682', "editor_id" = 6, "updated_at" = '2013-07-13 00:49:59.210800' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 5], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:49:59.347159', "editor_id" = 5, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 00:49:59.348778' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 21ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 00:49:59.377935' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:49:59.383508', "updated_at" = '2013-07-13 00:49:59.384876' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 00:49:59.391520' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:49:59.407743', "updated_at" = '2013-07-13 00:49:59.409188' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-07-13 00:49:59.450484' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-07-13 00:49:59.460700' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (20.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 1], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-07-13 00:49:59.519794' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-07-13 00:49:59.520643' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-13 00:49:59.658692' WHERE "commontator_subscriptions"."id" = 5 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Fri, 12 Jul 2013 19:49:59 -0500 From: no-reply@example.com Message-ID: <51e0a437a28d8_4c7b38f7e889c7@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Fri, 12 Jul 2013 19:49:59 -0500 From: no-reply@example.com Message-ID: <51e0a437a4ba5_4c7b38f7e890a7@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-13 00:49:59.696584' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-13 00:49:59.697600' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-07-13 00:49:59.698475' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-07-13 00:49:59.702082' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 4]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-07-13 00:49:59.734631', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-13 00:49:59.735040' WHERE "commontator_threads"."id" = 4 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 5  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:49:59.815746', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-13 00:49:59.817036' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 00:49:59.818852' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:49:59.843980', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-13 00:49:59.845327' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 00:49:59.848754' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:49:59.851722', "updated_at" = '2013-07-13 00:49:59.852911' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:49:59.867335', "updated_at" = '2013-07-13 00:49:59.868626' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 24ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:49:59.917324', "updated_at" = '2013-07-13 00:49:59.918308' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 00:49:59.928796' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:49:59.937924', "updated_at" = '2013-07-13 00:49:59.939136' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 00:49:59.943261' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:49:59.944966', "updated_at" = '2013-07-13 00:49:59.945948' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 00:49:59.949426' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:49:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.0ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00]]  (14.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 00:51:50.894818' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 00:51:50.905719' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 00:51:50.944791' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00]]  (7.3ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00]]  (4.6ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (5.2ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:50 UTC +00:00]]  (4.4ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 3 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 3 LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (5.4ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 3], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (4.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 3 LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (5.2ms) commit transaction Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 3 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 3 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 4 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-13 00:51:51.049458' WHERE "commontator_subscriptions"."id" = 3  (4.4ms) commit transaction Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (23.2ms) Sent mail to (28ms) Date: Fri, 12 Jul 2013 19:51:51 -0500 From: no-reply@example.com Message-ID: <51e0a4a72aaf4_4c849b67e8953a7@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 3 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 3:

Something

Click here to visit this thread.

 (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 24ms (ActiveRecord: 1.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 30ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-07-13 00:51:51.266398' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-07-13 00:51:51.275658' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 5], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 19ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-07-13 00:51:51.458655' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-07-13 00:51:51.468335' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (23.5ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:51:51.507439', "editor_id" = 5, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 00:51:51.508896' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 00:51:51.519443' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:51:51.525419', "editor_id" = 6, "updated_at" = '2013-07-13 00:51:51.526581' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 5, "updated_at" = '2013-07-13 00:51:51.534526' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:51:51.535123', "updated_at" = '2013-07-13 00:51:51.536221' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 5, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-07-13 00:51:51.577175' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 21ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:51:51.642739', "editor_id" = 5, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 00:51:51.644185' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 00:51:51.651389' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:51:51.656865', "updated_at" = '2013-07-13 00:51:51.658123' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 6, "updated_at" = '2013-07-13 00:51:51.663283' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:51:51.665192', "editor_id" = 5, "updated_at" = '2013-07-13 00:51:51.666631' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 6, "updated_at" = '2013-07-13 00:51:51.672017' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:51:51.686224', "editor_id" = 5, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 00:51:51.687825' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 00:51:51.695308' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:51:51.700224', "editor_id" = 6, "updated_at" = '2013-07-13 00:51:51.701797' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 5, "updated_at" = '2013-07-13 00:51:51.705436' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:51:51.709052', "editor_id" = 6, "updated_at" = '2013-07-13 00:51:51.710275' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:51:51.726526', "updated_at" = '2013-07-13 00:51:51.728009' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 23ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (1.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 34ms (ActiveRecord: 1.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 00:51:51.890129', "editor_id" = 5, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 00:51:51.891619' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 00:51:51.900712' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (3.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 1], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-07-13 00:51:51.924447' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-07-13 00:51:51.925206' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:51:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-13 00:51:52.060786' WHERE "commontator_subscriptions"."id" = 5 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Fri, 12 Jul 2013 19:51:52 -0500 From: no-reply@example.com Message-ID: <51e0a4a8154c9_4c849b67e89548d@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Fri, 12 Jul 2013 19:51:52 -0500 From: no-reply@example.com Message-ID: <51e0a4a8178c8_4c849b67e895564@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 4]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-07-13 00:51:52.187551', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-13 00:51:52.187898' WHERE "commontator_threads"."id" = 4 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 5  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-13 00:51:52.206674' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-13 00:51:52.207581' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-07-13 00:51:52.208425' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-07-13 00:51:52.211796' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:51:52.228183', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-13 00:51:52.229163' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 00:51:52.249626' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:51:52.279429', "updated_at" = '2013-07-13 00:51:52.280762' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:51:52.289975', "updated_at" = '2013-07-13 00:51:52.291141' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 00:51:52.295572' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:51:52.297327', "updated_at" = '2013-07-13 00:51:52.298285' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 00:51:52.302128' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:51:52.330748', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-13 00:51:52.331926' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 00:51:52.335443' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:51:52.338206', "updated_at" = '2013-07-13 00:51:52.339487' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 00:51:52.347260', "updated_at" = '2013-07-13 00:51:52.348542' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 21ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 00:51:52.377768' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:51:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.0ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (13.3ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (5.2ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 01:05:47.179158' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 01:05:47.188818' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 01:05:47.198664' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (7.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (4.8ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (5.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 3 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 3 LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (3.5ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 3], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (4.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (3.8ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 3 LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (3.9ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 3 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 3 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 4 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-13 01:05:47.333395' WHERE "commontator_subscriptions"."id" = 3  (3.6ms) commit transaction Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (23.7ms) Sent mail to (29ms) Date: Fri, 12 Jul 2013 20:05:47 -0500 From: no-reply@example.com Message-ID: <51e0a7eb6f5df_4dacacbfe899777@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 3 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 3:

Something

Click here to visit this thread.

 (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 5, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-07-13 01:05:47.507067' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.7ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.3ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 26ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 01:05:47.582070', "editor_id" = 5, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 01:05:47.583324' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 01:05:47.594338' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 01:05:47.600491', "editor_id" = 6, "updated_at" = '2013-07-13 01:05:47.601658' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 5, "updated_at" = '2013-07-13 01:05:47.609690' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 01:05:47.610301', "updated_at" = '2013-07-13 01:05:47.611402' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 5], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 01:05:47.679387', "updated_at" = '2013-07-13 01:05:47.681042' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 21ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.6ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 31ms (ActiveRecord: 1.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 01:05:47.892555', "editor_id" = 5, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 01:05:47.894070' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 01:05:47.903276' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (18.0ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:05:47 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 01:05:48.001498', "editor_id" = 5, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 01:05:48.002843' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 01:05:48.010760' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 01:05:48.015990', "updated_at" = '2013-07-13 01:05:48.017204' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 6, "updated_at" = '2013-07-13 01:05:48.022783' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 01:05:48.024673', "editor_id" = 5, "updated_at" = '2013-07-13 01:05:48.026032' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 6, "updated_at" = '2013-07-13 01:05:48.031402' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 29ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-07-13 01:05:48.089740' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-07-13 01:05:48.099794' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (1.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 35ms (ActiveRecord: 1.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 01:05:48.143685', "editor_id" = 5, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 01:05:48.144861' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 01:05:48.151034' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 01:05:48.154386', "editor_id" = 6, "updated_at" = '2013-07-13 01:05:48.155722' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 5, "updated_at" = '2013-07-13 01:05:48.158848' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 01:05:48.163114', "editor_id" = 6, "updated_at" = '2013-07-13 01:05:48.164673' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-07-13 01:05:48.201187' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-07-13 01:05:48.210284' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (3.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 1], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-07-13 01:05:48.236599' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-07-13 01:05:48.237389' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-13 01:05:48.373958' WHERE "commontator_subscriptions"."id" = 5 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (22ms) Date: Fri, 12 Jul 2013 20:05:48 -0500 From: no-reply@example.com Message-ID: <51e0a7ec61b62_4dacacbfe899891@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Fri, 12 Jul 2013 20:05:48 -0500 From: no-reply@example.com Message-ID: <51e0a7ec63f6c_4dacacbfe899911@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (25.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-13 01:05:48.468639' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-13 01:05:48.469557' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-07-13 01:05:48.470405' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-07-13 01:05:48.473852' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 4]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-07-13 01:05:48.484961', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-13 01:05:48.485317' WHERE "commontator_threads"."id" = 4 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 5  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 01:05:48.541098', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-13 01:05:48.542090' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 01:05:48.562380' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 01:05:48.569502', "updated_at" = '2013-07-13 01:05:48.570719' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 01:05:48.576206' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 01:05:48.578078', "updated_at" = '2013-07-13 01:05:48.579310' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 01:05:48.583867' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 01:05:48.611454', "updated_at" = '2013-07-13 01:05:48.612663' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 01:05:48.621923' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 01:05:48.639676', "updated_at" = '2013-07-13 01:05:48.641140' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 01:05:48.671445', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-13 01:05:48.673316' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 01:05:48.678961' WHERE "commontator_threads"."id" = 4  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 01:05:48.701393', "updated_at" = '2013-07-13 01:05:48.702813' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:05:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.0ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]]  (12.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]]  (5.8ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 01:19:14.247467' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 01:19:14.312919' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 01:19:14.322320' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]]  (10.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]]  (6.0ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]]  (4.4ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (5.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]]  (4.9ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) begin transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-13 01:19:14.411514' WHERE "commontator_subscriptions"."id" = 2  (4.9ms) commit transaction Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (23.4ms) Sent mail to (28ms) Date: Fri, 12 Jul 2013 20:19:14 -0500 From: no-reply@example.com Message-ID: <51e0ab128543b_4ea8d44fe09552a@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]]  (7.4ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 3 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 3 LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.5ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 3], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 4 LIMIT 1  (13.2ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 01:19:14.622918', "editor_id" = 5, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 01:19:14.624434' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 01:19:14.635164' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 23ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 11ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 01:19:14.728092', "editor_id" = 5, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 01:19:14.729285' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 01:19:14.735377' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 01:19:14.738465', "editor_id" = 6, "updated_at" = '2013-07-13 01:19:14.739609' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 5, "updated_at" = '2013-07-13 01:19:14.742352' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 01:19:14.745384', "editor_id" = 6, "updated_at" = '2013-07-13 01:19:14.746505' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 18ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-07-13 01:19:14.791082' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-07-13 01:19:14.818039' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 28ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 01:19:14.848566', "editor_id" = 5, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 01:19:14.849941' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 01:19:14.861040' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 01:19:14.867426', "editor_id" = 6, "updated_at" = '2013-07-13 01:19:14.869003' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 5, "updated_at" = '2013-07-13 01:19:14.878119' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 01:19:14.878793', "updated_at" = '2013-07-13 01:19:14.880282' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (22.9ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.4ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 28ms (ActiveRecord: 23.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 5, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-07-13 01:19:14.923225' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:14 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 11ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-07-13 01:19:15.099679' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-07-13 01:19:15.109042' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 01:19:15.124863', "editor_id" = 5, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 01:19:15.126186' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 01:19:15.133186' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 01:19:15.138394', "updated_at" = '2013-07-13 01:19:15.139687' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 6, "updated_at" = '2013-07-13 01:19:15.145349' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 01:19:15.147209', "editor_id" = 5, "updated_at" = '2013-07-13 01:19:15.148404' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 6, "updated_at" = '2013-07-13 01:19:15.153900' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (18.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (1.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 5], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 01:19:15.331005', "updated_at" = '2013-07-13 01:19:15.332458' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 21ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (3.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 1], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-07-13 01:19:15.375094' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-07-13 01:19:15.376146' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 21ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (1.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-13 01:19:15.540463' WHERE "commontator_subscriptions"."id" = 5 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Fri, 12 Jul 2013 20:19:15 -0500 From: no-reply@example.com Message-ID: <51e0ab1385ac3_4ea8d44fe09566d@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Fri, 12 Jul 2013 20:19:15 -0500 From: no-reply@example.com Message-ID: <51e0ab1387c4a_4ea8d44fe09577a@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-13 01:19:15.593763' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-13 01:19:15.594684' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-07-13 01:19:15.595545' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-07-13 01:19:15.598938' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 01:19:15.638919', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-13 01:19:15.639933' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 01:19:15.660788' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 4]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-07-13 01:19:15.671871', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-13 01:19:15.672329' WHERE "commontator_threads"."id" = 4 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 5  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 01:19:15.698553', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-13 01:19:15.699946' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 01:19:15.703663' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 01:19:15.706796', "updated_at" = '2013-07-13 01:19:15.707984' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 01:19:15.750101', "updated_at" = '2013-07-13 01:19:15.751358' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 01:19:15.762534' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 01:19:15.799576', "updated_at" = '2013-07-13 01:19:15.800880' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 01:19:15.809484', "updated_at" = '2013-07-13 01:19:15.810673' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 01:19:15.814607' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 01:19:15.816292', "updated_at" = '2013-07-13 01:19:15.817245' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 01:19:15.820612' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (1.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:16 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:16 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:16 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:16 UTC +00:00]]  (13.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:16 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:16 UTC +00:00]]  (4.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:16 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:16 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:16 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:16 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 01:20:17.020858' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 01:20:17.032295' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 01:20:17.040797' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (7.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (4.2ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (3.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 3 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 3 LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (4.7ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 3], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (4.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (3.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 3 LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (4.5ms) commit transaction Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 3 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 3 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.0ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 3 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 4 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-13 01:20:17.173309' WHERE "commontator_subscriptions"."id" = 3  (3.9ms) commit transaction Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (23.3ms) Sent mail to (29ms) Date: Fri, 12 Jul 2013 20:20:17 -0500 From: no-reply@example.com Message-ID: <51e0ab514bd21_4ecf12457ec25656@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 3 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 3:

Something

Click here to visit this thread.

 (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 01:20:17.354870', "editor_id" = 5, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 01:20:17.356184' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 01:20:17.363218' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 01:20:17.368941', "updated_at" = '2013-07-13 01:20:17.370075' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 6, "updated_at" = '2013-07-13 01:20:17.375409' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 01:20:17.376949', "editor_id" = 5, "updated_at" = '2013-07-13 01:20:17.378072' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 6, "updated_at" = '2013-07-13 01:20:17.382602' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (21.9ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 26ms (ActiveRecord: 22.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 01:20:17.437312', "editor_id" = 5, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 01:20:17.438508' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 01:20:17.448097' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 01:20:17.454132', "editor_id" = 6, "updated_at" = '2013-07-13 01:20:17.455319' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 5, "updated_at" = '2013-07-13 01:20:17.463323' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 01:20:17.463938', "updated_at" = '2013-07-13 01:20:17.465026' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 5, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-07-13 01:20:17.482817' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"3", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 01:20:17.507440', "editor_id" = 5, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 01:20:17.508735' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 01:20:17.514978' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 01:20:17.518751', "editor_id" = 6, "updated_at" = '2013-07-13 01:20:17.519903' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 5, "updated_at" = '2013-07-13 01:20:17.522688' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 01:20:17.525776', "editor_id" = 6, "updated_at" = '2013-07-13 01:20:17.526903' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-07-13 01:20:17.562388', "editor_id" = 5, "editor_type" = 'DummyUser', "updated_at" = '2013-07-13 01:20:17.563986' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-07-13 01:20:17.574141' WHERE "commontator_comments"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 23ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.7ms)  (0.3ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-07-13 01:20:17.691938' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-07-13 01:20:17.701401' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 01:20:17.725054', "updated_at" = '2013-07-13 01:20:17.726464' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-07-13 01:20:17.764669' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-07-13 01:20:17.773715' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 5 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 5], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 35ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["votable_id", 3], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 6], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 6 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 3 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:20:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"4", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"3"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "3"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 3 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (1.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 1], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-07-13 01:20:18.046998' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-07-13 01:20:18.047813' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 22ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 6]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-13 01:20:18.186848' WHERE "commontator_subscriptions"."id" = 5 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (4ms) Date: Fri, 12 Jul 2013 20:20:18 -0500 From: no-reply@example.com Message-ID: <51e0ab522f676_4ecf12457ec25786@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (22ms) Date: Fri, 12 Jul 2013 20:20:18 -0500 From: no-reply@example.com Message-ID: <51e0ab52366b7_4ecf12457ec258ad@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 4 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 4:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 01:20:18.291014', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-13 01:20:18.292082' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 01:20:18.293853' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 4], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 4]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-07-13 01:20:18.303240', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-13 01:20:18.303573' WHERE "commontator_threads"."id" = 4 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 4 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 5  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 4 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-13 01:20:18.339886' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-07-13 01:20:18.340796' WHERE "commontator_subscriptions"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-07-13 01:20:18.341640' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-07-13 01:20:18.345033' WHERE "commontator_subscriptions"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["unread", 0], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 5 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 4 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 6 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 23ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 01:20:18.403376', "updated_at" = '2013-07-13 01:20:18.404512' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 01:20:18.415145' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 01:20:18.432484', "updated_at" = '2013-07-13 01:20:18.433833' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 01:20:18.442825', "updated_at" = '2013-07-13 01:20:18.444156' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 01:20:18.448579' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 01:20:18.450404', "updated_at" = '2013-07-13 01:20:18.451472' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 01:20:18.455296' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 01:20:18.464221', "closer_id" = 5, "closer_type" = 'DummyUser', "updated_at" = '2013-07-13 01:20:18.465281' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-07-13 01:20:18.468581' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-07-13 01:20:18.471286', "updated_at" = '2013-07-13 01:20:18.472628' WHERE "commontator_threads"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"4"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "4"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 4 LIMIT 1 Redirected to http://test.host/dummy_models/4 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 4 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 01:20:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (5.9ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (9.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (4.3ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:19:43.099939' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:19:43.110371' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:19:43.118141' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 14ms  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:19:43.293094', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:19:43.294382' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:19:43.301516' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:19:43.307235', "updated_at" = '2013-09-24 20:19:43.308397' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:19:43.313655' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:19:43.315143', "editor_id" = 2, "updated_at" = '2013-09-24 20:19:43.316271' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:19:43.320685' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 5ms  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:19:43.351360', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:19:43.352833' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:19:43.379872' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (23.2ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.2ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 34ms (ActiveRecord: 24.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:19:43.543742', "updated_at" = '2013-09-24 20:19:43.545167' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:19:43.582855' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:19:43.591912' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:19:43.609576', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:19:43.610749' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:19:43.616604' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:19:43.619631', "editor_id" = 3, "updated_at" = '2013-09-24 20:19:43.620767' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:19:43.641405' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:19:43.644759', "editor_id" = 3, "updated_at" = '2013-09-24 20:19:43.645952' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:19:43.680050', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:19:43.681566' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:19:43.692775' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:19:43.699927', "editor_id" = 3, "updated_at" = '2013-09-24 20:19:43.701500' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:19:43.710816' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:19:43.711452', "updated_at" = '2013-09-24 20:19:43.712572' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 6ms  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 2, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-09-24 20:19:43.749230' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 24ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (1.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 1.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 7ms  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 12ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:19:43.887387' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:19:43.897050' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (5.9ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:19:43.966525' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:19:43.967551' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (4.8ms) Sent mail to (8ms) Date: Tue, 24 Sep 2013 15:19:44 -0500 From: no-reply@example.com Message-ID: <5241f3e0325a9_68e8dd3fec8801a@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-09-24 20:19:44.222893', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:19:44.223245' WHERE "commontator_threads"."id" = 2 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 3  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:19:44.232859', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:19:44.233879' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:19:44.235582' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]] DummyModel Load (24.4ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:19:44.334486' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:19:44.335410' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:19:44.336273' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:19:44.339698' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:19:44.352286', "updated_at" = '2013-09-24 20:19:44.353259' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:19:44.365673' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:19:44.381749', "updated_at" = '2013-09-24 20:19:44.382981' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:19:44.394822', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:19:44.396265' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:19:44.400004' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:19:44.401937', "updated_at" = '2013-09-24 20:19:44.402928' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:19:44.448478', "updated_at" = '2013-09-24 20:19:44.449688' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:19:44.455079' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:19:44.457563', "updated_at" = '2013-09-24 20:19:44.459248' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:19:44.464427' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:19:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:30 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:30 UTC +00:00]]  (18.4ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:30 UTC +00:00]]  (4.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:30 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:30 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:20:30.972125' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:30 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:20:30.980948' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:30 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:30 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 20:20:30 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:20:30.990427' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:30 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 5ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:20:31.033261', "updated_at" = '2013-09-24 20:20:31.034717' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:20:31.045775', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:20:31.046927' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:20:31.059169' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 13ms (ActiveRecord: 0.6ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:20:31.064818', "updated_at" = '2013-09-24 20:20:31.065921' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:20:31.071150' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:20:31.072640', "editor_id" = 2, "updated_at" = '2013-09-24 20:20:31.073746' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:20:31.078125' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (20.5ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 24ms (ActiveRecord: 20.7ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 23ms (ActiveRecord: 1.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:20:31.174253' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:20:31.183376' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:20:31.217328', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:20:31.218615' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:20:31.224572' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:20:31.228284', "editor_id" = 3, "updated_at" = '2013-09-24 20:20:31.229453' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:20:31.232291' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:20:31.235341', "editor_id" = 3, "updated_at" = '2013-09-24 20:20:31.236449' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 2, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-09-24 20:20:31.285154' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:20:31.338238' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.6ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:20:31.371294' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 33ms (ActiveRecord: 1.4ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:20:31.385686', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:20:31.386843' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:20:31.396151' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:20:31.402123', "editor_id" = 3, "updated_at" = '2013-09-24 20:20:31.403284' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:20:31.411197' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:20:31.411823', "updated_at" = '2013-09-24 20:20:31.412936' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:20:31.445665', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:20:31.447198' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:20:31.456201' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (24.6ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (3.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:20:31.814153' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:20:31.815147' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (4.7ms) Sent mail to (8ms) Date: Tue, 24 Sep 2013 15:20:32 -0500 From: no-reply@example.com Message-ID: <5241f4105b05_68fdeeb7e0548a1@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:20:32.060421', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:20:32.061455' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:20:32.063197' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (22.5ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:20:32.119062' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:20:32.120073' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:20:32.120928' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:20:32.124351' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-09-24 20:20:32.147405', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:20:32.147754' WHERE "commontator_threads"."id" = 2 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 3  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:20:32.194234', "updated_at" = '2013-09-24 20:20:32.195176' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:20:32.199437' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:20:32.201159', "updated_at" = '2013-09-24 20:20:32.202067' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.0ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:20:32.205771' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:20:32.219829', "updated_at" = '2013-09-24 20:20:32.221046' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:20:32.249365', "updated_at" = '2013-09-24 20:20:32.250539' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:20:32.259702' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:20:32.270320', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:20:32.271547' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:20:32.275054' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:20:32.277548', "updated_at" = '2013-09-24 20:20:32.278976' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (11.3ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (4.6ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:20:57.489083' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:20:57.499678' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:20:57.507810' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:20:57.580277', "updated_at" = '2013-09-24 20:20:57.581721' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:20:57.601387', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:20:57.603054' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 12ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:20:57.620602' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 17ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:20:57.767513' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:20:57.794147' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 27ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:20:57.838671' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:20:57.848305' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:20:57.863814', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:20:57.865082' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:20:57.876286' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:20:57.907608', "editor_id" = 3, "updated_at" = '2013-09-24 20:20:57.909324' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:20:57.918244' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:20:57.918865', "updated_at" = '2013-09-24 20:20:57.920004' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:20:57.995605', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:20:57.996806' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:20:58.003159' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:20:58.007658', "updated_at" = '2013-09-24 20:20:58.008789' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:20:58.013292' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:20:58.014978', "editor_id" = 2, "updated_at" = '2013-09-24 20:20:58.016298' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:20:58.020786' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 2, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-09-24 20:20:58.123272' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:20:58.207297', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:20:58.208782' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:20:58.216141' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:20:58.220256', "editor_id" = 3, "updated_at" = '2013-09-24 20:20:58.221816' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:20:58.225463' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:20:58.229941', "editor_id" = 3, "updated_at" = '2013-09-24 20:20:58.231489' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (3.7ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:20:58.370059' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:20:58.371066' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (4.7ms) Sent mail to (8ms) Date: Tue, 24 Sep 2013 15:20:58 -0500 From: no-reply@example.com Message-ID: <5241f42a900bb_690de0e7f07938f@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:20:58.646577' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:20:58.647498' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:20:58.648360' WHERE "commontator_subscriptions"."id" = 2  (0.3ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:20:58.677385' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-09-24 20:20:58.707339', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:20:58.707692' WHERE "commontator_threads"."id" = 2 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 3  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:20:58.716752', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:20:58.717899' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:20:58.720254' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:20:58.775751', "updated_at" = '2013-09-24 20:20:58.776756' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:20:58.806798' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:20:58.824647', "updated_at" = '2013-09-24 20:20:58.825955' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:20:58.835125', "updated_at" = '2013-09-24 20:20:58.836131' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:20:58.841175' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:20:58.843705', "updated_at" = '2013-09-24 20:20:58.845380' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:20:58.850379' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:20:58.859685', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:20:58.860905' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:20:58.864212' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:20:58.866764', "updated_at" = '2013-09-24 20:20:58.868187' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:20:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00]]  (13.4ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00]]  (4.6ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:23:53.669961' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:23:53.680893' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:23:53.699604' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 30ms (ActiveRecord: 1.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:23:53.782391' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:23:53.791528' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 26ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:23:53.836919', "updated_at" = '2013-09-24 20:23:53.838460' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:23:53.929837' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:23:53.938903' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:23:53.957939', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:23:53.959256' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:23:53.982614' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:23:53.987006', "editor_id" = 3, "updated_at" = '2013-09-24 20:23:53.988313' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:23:53.991372' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:23:53.994636', "editor_id" = 3, "updated_at" = '2013-09-24 20:23:53.995830' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:23:54.045042', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:23:54.046548' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:23:54.057976' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (1.3ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 30ms (ActiveRecord: 1.9ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:23:54.153467', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:23:54.154639' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:23:54.161513' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:23:54.166179', "updated_at" = '2013-09-24 20:23:54.167325' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:23:54.172462' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:23:54.173979', "editor_id" = 2, "updated_at" = '2013-09-24 20:23:54.175086' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:23:54.179681' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:23:54.202404', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:23:54.203563' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:23:54.213013' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:23:54.237298', "editor_id" = 3, "updated_at" = '2013-09-24 20:23:54.238601' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:23:54.247480' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:23:54.248131', "updated_at" = '2013-09-24 20:23:54.249308' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 2, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-09-24 20:23:54.268369' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 21ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:23:54.548773' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:23:54.549787' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (4.7ms) Sent mail to (8ms) Date: Tue, 24 Sep 2013 15:23:54 -0500 From: no-reply@example.com Message-ID: <5241f4dab9c6b_691f62b7e090244@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-09-24 20:23:54.778047', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:23:54.778413' WHERE "commontator_threads"."id" = 2 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 3  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:23:54.865347' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:23:54.866300' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:23:54.867179' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:23:54.870646' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:23:54.877917', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:23:54.878956' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:23:54.880713' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:23:54.939820', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:23:54.941007' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:23:54.943995' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:23:54.946566', "updated_at" = '2013-09-24 20:23:54.947577' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:23:54.954308', "updated_at" = '2013-09-24 20:23:54.955258' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:23:54.959472' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:23:54.980538', "updated_at" = '2013-09-24 20:23:54.981833' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:23:54.986095' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:23:54.993123', "updated_at" = '2013-09-24 20:23:54.994133' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:23:55.003805' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:23:55.019986', "updated_at" = '2013-09-24 20:23:55.021258' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:23:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:23:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:23:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00]]  (13.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00]]  (4.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:35:20.843464' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:35:20.853881' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:35:20.861797' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:35:20.870188', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:35:20.871321' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:35:20.910562' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 14ms (ActiveRecord: 0.7ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:35:20.916454', "updated_at" = '2013-09-24 20:35:20.917599' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:35:20.922892' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:35:20.924440', "editor_id" = 2, "updated_at" = '2013-09-24 20:35:20.925546' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:35:20.930005' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:35:20.956886', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:35:20.958142' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.2ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:35:20.968059' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:35:20.995845', "editor_id" = 3, "updated_at" = '2013-09-24 20:35:20.997230' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:35:21.005367' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:35:21.005977', "updated_at" = '2013-09-24 20:35:21.007071' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 28ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:35:21.191524', "updated_at" = '2013-09-24 20:35:21.193141' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (23.4ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 34ms (ActiveRecord: 24.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:35:21.281666' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:35:21.290965' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:35:21.332053' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:35:21.341152' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 2, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-09-24 20:35:21.360966' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 21ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:35:21.464344', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:35:21.465989' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:35:21.476978' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]] DummyModel Load (1.5ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:35:21.585343', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:35:21.586575' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:35:21.592732' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:35:21.595874', "editor_id" = 3, "updated_at" = '2013-09-24 20:35:21.597043' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:35:21.599894' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:35:21.603014', "editor_id" = 3, "updated_at" = '2013-09-24 20:35:21.604150' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (3.8ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:35:21.707587' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:35:21.708599' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (4.7ms) Sent mail to (8ms) Date: Tue, 24 Sep 2013 15:35:21 -0500 From: no-reply@example.com Message-ID: <5241f789e0908_69631086ff083dd@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:35:21.932912', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:35:21.933953' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:35:21.935689' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:35:21.951114' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:35:21.952031' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:35:21.952945' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:35:21.956503' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-09-24 20:35:21.983943', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:35:21.984287' WHERE "commontator_threads"."id" = 2 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 3  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.3ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:35:22.065326', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:35:22.066474' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:35:22.069489' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:35:22.072088', "updated_at" = '2013-09-24 20:35:22.073111' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:35:22.117929', "updated_at" = '2013-09-24 20:35:22.119131' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (19.5ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:35:22.146834', "updated_at" = '2013-09-24 20:35:22.148020' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:35:22.152790' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:35:22.154607', "updated_at" = '2013-09-24 20:35:22.155598' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:35:22.160180' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:35:22.167666', "updated_at" = '2013-09-24 20:35:22.168880' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:35:22.178540' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:32 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:32 UTC +00:00]]  (14.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:32 UTC +00:00]]  (5.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:32 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]] SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:35:33.010686' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:35:33.019451' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:35:33.027702' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:35:33.072474', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:35:33.073928' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 13ms (ActiveRecord: 0.7ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:35:33.081254' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:35:33.085128', "editor_id" = 3, "updated_at" = '2013-09-24 20:35:33.086270' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:35:33.089073' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:35:33.092179', "editor_id" = 3, "updated_at" = '2013-09-24 20:35:33.093343' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.2ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:35:33.144969', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:35:33.167084' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:35:33.178202' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:35:33.184152', "editor_id" = 3, "updated_at" = '2013-09-24 20:35:33.185325' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:35:33.193073' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:35:33.193671', "updated_at" = '2013-09-24 20:35:33.194750' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:35:33.233893' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:35:33.242875' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 20ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:35:33.338694', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:35:33.340034' WHERE "commontator_comments"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:35:33.347039' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:35:33.352489', "updated_at" = '2013-09-24 20:35:33.354066' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:35:33.359786' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:35:33.361687', "editor_id" = 2, "updated_at" = '2013-09-24 20:35:33.363246' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:35:33.369132' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 2, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-09-24 20:35:33.385480' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]] DummyModel Load (0.9ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:35:33.463999', "updated_at" = '2013-09-24 20:35:33.465411' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:35:33.482838', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:35:33.484317' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:35:33.493224' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 20ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:35:33.655189' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:35:33.665042' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (1.2ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (5.8ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:35:33.840428' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:35:33.841429' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (4.6ms) Sent mail to (8ms) Date: Tue, 24 Sep 2013 15:35:34 -0500 From: no-reply@example.com Message-ID: <5241f796bc92_696bb57fe8974a@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:35:34.074042', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:35:34.075033' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:35:34.076759' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (22.5ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:35:34.147550' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:35:34.148508' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:35:34.149358' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:35:34.152759' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-09-24 20:35:34.172031', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:35:34.172383' WHERE "commontator_threads"."id" = 2 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 3  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:35:34.190185', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:35:34.191340' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:35:34.194360' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:35:34.196909', "updated_at" = '2013-09-24 20:35:34.197910' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:35:34.223137', "updated_at" = '2013-09-24 20:35:34.224108' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:35:34.233752' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:35:34.241820', "updated_at" = '2013-09-24 20:35:34.242783' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:35:34.265310' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:35:34.267182', "updated_at" = '2013-09-24 20:35:34.268171' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.0ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:35:34.271452' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:35:34.298571', "updated_at" = '2013-09-24 20:35:34.299880' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:35:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (12.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (5.5ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:36:02.100201' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:36:02.110614' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:36:02.118534' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 8ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 23ms (ActiveRecord: 0.2ms)  (0.2ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:36:02.282405', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:36:02.283984' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:36:02.293480' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:36:02.304983', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:36:02.306133' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:36:02.316363' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:36:02.322265', "editor_id" = 3, "updated_at" = '2013-09-24 20:36:02.323431' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:36:02.331319' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:36:02.331924', "updated_at" = '2013-09-24 20:36:02.333028' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:36:02.348781', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:36:02.349927' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:36:02.355892' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:36:02.359005', "editor_id" = 3, "updated_at" = '2013-09-24 20:36:02.360131' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:36:02.362910' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:36:02.365941', "editor_id" = 3, "updated_at" = '2013-09-24 20:36:02.367053' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.8ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:36:02.541591' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:36:02.550645' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:36:02.591092' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:36:02.600186' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:36:02.619952', "updated_at" = '2013-09-24 20:36:02.621456' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 21ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 2, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-09-24 20:36:02.720789' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:36:02.772159', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:36:02.773797' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:36:02.782232' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (24.7ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.3ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:36:02.805693', "updated_at" = '2013-09-24 20:36:02.832123' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:36:02.838175' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:36:02.839927', "editor_id" = 2, "updated_at" = '2013-09-24 20:36:02.841086' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:36:02.845641' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (3.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:36:02.965932' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:36:02.967019' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:36:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (4.7ms) Sent mail to (8ms) Date: Tue, 24 Sep 2013 15:36:03 -0500 From: no-reply@example.com Message-ID: <5241f7b32d33c_6973a817e010594@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-09-24 20:36:03.220991', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:36:03.221367' WHERE "commontator_threads"."id" = 2 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 3  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:36:03.230443', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:36:03.231403' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:36:03.233070' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:36:03.307595' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:36:03.308578' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:36:03.309436' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:36:03.312954' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:36:03.334249', "updated_at" = '2013-09-24 20:36:03.335519' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:36:03.344152', "updated_at" = '2013-09-24 20:36:03.345098' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:36:03.354822' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:36:03.383799', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:36:03.384846' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:36:03.407217' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:36:03.409438', "updated_at" = '2013-09-24 20:36:03.410469' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:36:03.430756', "updated_at" = '2013-09-24 20:36:03.431948' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:36:03.436076' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:36:03.437917', "updated_at" = '2013-09-24 20:36:03.439176' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:36:03.443346' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.0ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (13.5ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (5.6ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:36:14.591218' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:36:14.601165' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:36:14.609180' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 15ms (ActiveRecord: 0.9ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:36:14.686617', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:36:14.687969' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:36:14.694298' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:36:14.698197', "editor_id" = 3, "updated_at" = '2013-09-24 20:36:14.699320' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:36:14.702153' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:36:14.705254', "editor_id" = 3, "updated_at" = '2013-09-24 20:36:14.706365' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 23ms (ActiveRecord: 1.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:36:14.798246' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:36:14.807708' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:36:14.828630', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:36:14.830083' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:36:14.838996' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 21ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:36:14.892599', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:36:14.894061' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:36:14.904766' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:36:14.911305', "editor_id" = 3, "updated_at" = '2013-09-24 20:36:14.912627' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:36:14.920884' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:36:14.921489', "updated_at" = '2013-09-24 20:36:14.922828' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (1.1ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:36:15.008267', "updated_at" = '2013-09-24 20:36:15.009788' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:36:15.046245' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:36:15.055218' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:36:15.099709', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:36:15.100877' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:36:15.107222' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:36:15.112394', "updated_at" = '2013-09-24 20:36:15.113653' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:36:15.119601' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:36:15.121726', "editor_id" = 2, "updated_at" = '2013-09-24 20:36:15.123093' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:36:15.128387' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 23ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 2, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-09-24 20:36:15.187198' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.2ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.2ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 35ms (ActiveRecord: 1.5ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.5ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (5.7ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:36:15.470542' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:36:15.471544' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (4.7ms) Sent mail to (8ms) Date: Tue, 24 Sep 2013 15:36:15 -0500 From: no-reply@example.com Message-ID: <5241f7bfa665f_697a50b7e8104ae@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:36:15.733735' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:36:15.734675' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:36:15.735528' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:36:15.738928' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:36:15.806978', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:36:15.807983' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:36:15.809743' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-09-24 20:36:15.818316', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:36:15.818636' WHERE "commontator_threads"."id" = 2 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 3  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:36:15.829141', "updated_at" = '2013-09-24 20:36:15.830257' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:36:15.841436' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:36:15.852339', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:36:15.853478' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:36:15.856422' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:36:15.858966', "updated_at" = '2013-09-24 20:36:15.859974' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:36:15.873298', "updated_at" = '2013-09-24 20:36:15.874506' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 23ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:36:15.937351', "updated_at" = '2013-09-24 20:36:15.938387' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:36:15.943260' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:36:15.945188', "updated_at" = '2013-09-24 20:36:15.946473' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:36:15.950588' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:36:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.0ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (10.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (5.4ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]] SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:38:11.158568' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:38:11.167414' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:38:11.175604' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:38:11.218877', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:38:11.220313' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 13ms (ActiveRecord: 0.6ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:38:11.227523' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:38:11.231412', "editor_id" = 3, "updated_at" = '2013-09-24 20:38:11.232557' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:38:11.235334' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:38:11.238387', "editor_id" = 3, "updated_at" = '2013-09-24 20:38:11.239497' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:38:11.428536', "updated_at" = '2013-09-24 20:38:11.429950' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 2, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-09-24 20:38:11.527017' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (1.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:38:11.645145', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:38:11.646610' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:38:11.655718' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:38:11.710323' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:38:11.720947' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:38:11.736310', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:38:11.737657' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:38:11.748138' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:38:11.754189', "editor_id" = 3, "updated_at" = '2013-09-24 20:38:11.755396' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:38:11.764186' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:38:11.764855', "updated_at" = '2013-09-24 20:38:11.765985' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:38:11.807062', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:38:11.808624' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:38:11.815702' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:38:11.821514', "updated_at" = '2013-09-24 20:38:11.823156' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:38:11.829757' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 24ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:38:11.849675', "editor_id" = 2, "updated_at" = '2013-09-24 20:38:11.851384' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:38:11.857133' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (24.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:38:11.917053' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:38:11.926055' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (24.8ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:38:11.994374' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:38:11.995384' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:11 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:38:12.139328', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:38:12.140330' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.0ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:38:12.142033' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:38:12.157310' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:38:12.158224' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:38:12.159072' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:38:12.162482' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-09-24 20:38:12.204633', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:38:12.204981' WHERE "commontator_threads"."id" = 2 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 3  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (18.6ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:38:12.277336', "updated_at" = '2013-09-24 20:38:12.278604' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:38:12.288763' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:38:12.300562', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:38:12.301764' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:38:12.305190' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:38:12.308380', "updated_at" = '2013-09-24 20:38:12.309744' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:38:12.317141', "updated_at" = '2013-09-24 20:38:12.318261' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.6ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:38:12.322317' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 29ms (ActiveRecord: 0.8ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:38:12.348950', "updated_at" = '2013-09-24 20:38:12.350101' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:38:12.353662' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:38:12.384640', "updated_at" = '2013-09-24 20:38:12.385839' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:26 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:26 UTC +00:00]]  (16.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:26 UTC +00:00]]  (5.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:38:27.024374' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:38:27.034502' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:38:27.052489' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 8ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:38:27.135788', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:38:27.137466' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:38:27.147995' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:38:27.159385', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:38:27.160537' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:38:27.171425' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:38:27.177476', "editor_id" = 3, "updated_at" = '2013-09-24 20:38:27.178637' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:38:27.186348' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:38:27.186942', "updated_at" = '2013-09-24 20:38:27.188130' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (21.6ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 26ms (ActiveRecord: 22.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 23ms (ActiveRecord: 1.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:38:27.263278' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:38:27.272254' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:38:27.289645', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:38:27.290794' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:38:27.296595' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:38:27.299623', "editor_id" = 3, "updated_at" = '2013-09-24 20:38:27.300758' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:38:27.303466' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:38:27.306507', "editor_id" = 3, "updated_at" = '2013-09-24 20:38:27.307625' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (22.5ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:38:27.492026' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:38:27.501356' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 2, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-09-24 20:38:27.558478' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 26ms (ActiveRecord: 18.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:38:27.633342', "updated_at" = '2013-09-24 20:38:27.634807' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:38:27.653777', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:38:27.655270' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:38:27.662552' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:38:27.667721', "updated_at" = '2013-09-24 20:38:27.668931' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:38:27.674227' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:38:27.676134', "editor_id" = 2, "updated_at" = '2013-09-24 20:38:27.677481' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:38:27.682889' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (1.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (26.9ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:38:27.853246' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:38:27.854280' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-09-24 20:38:28.002249', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:38:28.002588' WHERE "commontator_threads"."id" = 2 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 3  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:38:28.052772', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:38:28.053762' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:38:28.055467' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:38:28.070127' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:38:28.071016' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:38:28.071855' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:38:28.075237' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:38:28.137357', "updated_at" = '2013-09-24 20:38:28.138606' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:38:28.149003' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:38:28.158287', "updated_at" = '2013-09-24 20:38:28.159532' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:38:28.163632' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:38:28.165541', "updated_at" = '2013-09-24 20:38:28.166595' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.5ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:38:28.195794' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 29ms (ActiveRecord: 0.9ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:38:28.211094', "updated_at" = '2013-09-24 20:38:28.212464' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:38:28.240734', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:38:28.241863' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:38:28.244833' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:38:28.246803', "updated_at" = '2013-09-24 20:38:28.247798' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.0ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (14.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (5.2ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:38:44.093705' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]] SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:38:44.103794' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:38:44.111829' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 25ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:38:44.240401', "updated_at" = '2013-09-24 20:38:44.241880' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:38:44.344233' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:38:44.353193' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:38:44.424388', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:38:44.425968' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:38:44.436645' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:38:44.450292', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:38:44.451814' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:38:44.459326' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:38:44.464331', "updated_at" = '2013-09-24 20:38:44.465784' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:38:44.471598' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:38:44.473438', "editor_id" = 2, "updated_at" = '2013-09-24 20:38:44.474699' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.8ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:38:44.503311' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 29ms (ActiveRecord: 1.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:38:44.512721', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:38:44.513882' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:38:44.523614' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:38:44.529681', "editor_id" = 3, "updated_at" = '2013-09-24 20:38:44.530854' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:38:44.538989' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:38:44.539618', "updated_at" = '2013-09-24 20:38:44.540758' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:38:44.578953' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:38:44.587978' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:38:44.691624', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:38:44.693160' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:38:44.700703' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:38:44.704846', "editor_id" = 3, "updated_at" = '2013-09-24 20:38:44.706397' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:38:44.710057' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:38:44.713805', "editor_id" = 3, "updated_at" = '2013-09-24 20:38:44.715149' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 2, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-09-24 20:38:44.757611' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 24ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (24.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 29ms (ActiveRecord: 24.6ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (26.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:38:44.937885' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:38:44.938890' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:38:45.133298' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:38:45.134263' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:38:45.135120' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:38:45.138671' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:38:45.164428', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:38:45.165463' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:38:45.167212' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-09-24 20:38:45.194593', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:38:45.194954' WHERE "commontator_threads"."id" = 2 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 3  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:38:45.230844', "updated_at" = '2013-09-24 20:38:45.232132' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:38:45.241466', "updated_at" = '2013-09-24 20:38:45.242780' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:38:45.247201' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:38:45.249112', "updated_at" = '2013-09-24 20:38:45.250283' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:38:45.254683' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.7ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 28ms (ActiveRecord: 0.9ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:38:45.305619', "updated_at" = '2013-09-24 20:38:45.306578' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:38:45.315401' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:38:45.325442', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:38:45.326464' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:38:45.329425' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:38:45.331390', "updated_at" = '2013-09-24 20:38:45.332412' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.0ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00]]  (12.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00]] SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:40:06.875886' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:40:06.884788' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:40:06.903124' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:40:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:40:06.992070', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:40:06.993520' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:40:07.004209' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (20.8ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 31ms (ActiveRecord: 21.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:40:07.064365' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:40:07.073400' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (23.6ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:40:07.301934', "updated_at" = '2013-09-24 20:40:07.303348' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:40:07.385067', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:40:07.386188' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:40:07.392974' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:40:07.397669', "updated_at" = '2013-09-24 20:40:07.398767' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:40:07.403955' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:40:07.405459', "editor_id" = 2, "updated_at" = '2013-09-24 20:40:07.424057' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:40:07.429063' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:40:07.442378', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:40:07.443817' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:40:07.450111' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:40:07.453528', "editor_id" = 3, "updated_at" = '2013-09-24 20:40:07.454708' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:40:07.457572' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:40:07.460890', "editor_id" = 3, "updated_at" = '2013-09-24 20:40:07.462359' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:40:07.503846', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:40:07.505553' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:40:07.516035' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:40:07.523247', "editor_id" = 3, "updated_at" = '2013-09-24 20:40:07.524727' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:40:07.533887' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:40:07.534614', "updated_at" = '2013-09-24 20:40:07.536344' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 22ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 2, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-09-24 20:40:07.573758' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (1.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 30ms (ActiveRecord: 1.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:40:07.645796' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:40:07.654837' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (28.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:40:07.718273' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:40:07.719300' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (4.6ms) Sent mail to (28ms) Date: Tue, 24 Sep 2013 15:40:07 -0500 From: no-reply@example.com Message-ID: <5241f8a7e1f88_69a912d8fec35811@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:40:07.956797', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:40:07.957807' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:40:07.959546' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-09-24 20:40:07.985295', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:40:07.985638' WHERE "commontator_threads"."id" = 2 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 3  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (22.9ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:40:08.051670' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:40:08.052600' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:40:08.053520' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:40:08.056963' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:40:08.078753', "updated_at" = '2013-09-24 20:40:08.079695' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:40:08.089543' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:40:08.097864', "updated_at" = '2013-09-24 20:40:08.098804' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:40:08.102401' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:40:08.103956', "updated_at" = '2013-09-24 20:40:08.104860' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:40:08.107905' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:40:08.121888', "updated_at" = '2013-09-24 20:40:08.123102' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:40:08.133184', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:40:08.134195' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:40:08.136966' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:40:08.157996', "updated_at" = '2013-09-24 20:40:08.159174' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:40:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (10.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (4.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:41:44.348940' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:41:44.359139' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:41:44.367113' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 8ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:41:44.471372', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:41:44.472670' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (20.7ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:41:44.478818' WHERE "commontator_comments"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:41:44.504429', "editor_id" = 3, "updated_at" = '2013-09-24 20:41:44.505839' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:41:44.509036' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:41:44.512174', "editor_id" = 3, "updated_at" = '2013-09-24 20:41:44.513353' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:41:44.610523', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:41:44.611663' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:41:44.621864' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:41:44.645559', "editor_id" = 3, "updated_at" = '2013-09-24 20:41:44.646806' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:41:44.655817' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:41:44.656531', "updated_at" = '2013-09-24 20:41:44.657733' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 11ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:41:44.714281' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:41:44.723901' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:41:44.808072', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:41:44.809248' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:41:44.815474' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:41:44.820060', "updated_at" = '2013-09-24 20:41:44.821240' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:41:44.825702' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:41:44.827181', "editor_id" = 2, "updated_at" = '2013-09-24 20:41:44.828293' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:41:44.832691' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 2, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-09-24 20:41:44.846703' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 23ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:41:44.949328' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:41:44.958804' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:41:45.013986', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:41:45.033431' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:41:45.044040' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (1.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:41:45.113566', "updated_at" = '2013-09-24 20:41:45.114986' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (28.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:41:45.200247' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:41:45.201252' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (4.6ms) Sent mail to (28ms) Date: Tue, 24 Sep 2013 15:41:45 -0500 From: no-reply@example.com Message-ID: <5241f90963941_69b3bd0fec355e6@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:41:45.425615', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:41:45.426691' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.0ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:41:45.428414' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-09-24 20:41:45.451942', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:41:45.452295' WHERE "commontator_threads"."id" = 2 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 3  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:41:45.522474' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:41:45.523423' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:41:45.524309' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:41:45.527726' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:41:45.557106', "updated_at" = '2013-09-24 20:41:45.558323' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:41:45.585547', "updated_at" = '2013-09-24 20:41:45.586495' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:41:45.590615' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:41:45.592301', "updated_at" = '2013-09-24 20:41:45.593222' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:41:45.597061' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:41:45.605501', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:41:45.606537' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:41:45.609360' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:41:45.611264', "updated_at" = '2013-09-24 20:41:45.612258' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:41:45.638320', "updated_at" = '2013-09-24 20:41:45.639315' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:41:45.648498' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:41:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]]  (13.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]]  (5.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]] SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:42:30.746517' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:42:30.755460' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:42:30.774090' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 8ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:42:30.842537', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:42:30.843699' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:42:30.854105' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:42:30.861002', "editor_id" = 3, "updated_at" = '2013-09-24 20:42:30.862231' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:42:30.870228' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:42:30.870837', "updated_at" = '2013-09-24 20:42:30.871940' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:42:30.892105', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:42:30.893680' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:42:30.902768' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.3ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 26ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 11ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:42:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:42:31.031485', "updated_at" = '2013-09-24 20:42:31.032884' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (17.6ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:42:31.086385', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:42:31.087728' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:42:31.095303' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:42:31.100536', "updated_at" = '2013-09-24 20:42:31.101892' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:42:31.107486' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:42:31.109339', "editor_id" = 2, "updated_at" = '2013-09-24 20:42:31.110514' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:42:31.115925' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 43ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:42:31.211524' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:42:31.220680' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:42:31.303281' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:42:31.330680' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 28ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (1.5ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:42:31.470160', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:42:31.471551' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:42:31.477760' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:42:31.480922', "editor_id" = 3, "updated_at" = '2013-09-24 20:42:31.482072' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:42:31.484873' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:42:31.487981', "editor_id" = 3, "updated_at" = '2013-09-24 20:42:31.489101' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 2, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-09-24 20:42:31.525952' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (29.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:42:31.597924' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:42:31.598949' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (4.7ms) Sent mail to (8ms) Date: Tue, 24 Sep 2013 15:42:31 -0500 From: no-reply@example.com Message-ID: <5241f937c71ec_69bbab3fec95732@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:42:31.828672', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:42:31.829728' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:42:31.831480' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (23.1ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:42:31.930665' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:42:31.931597' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:42:31.932466' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:42:31.935884' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-09-24 20:42:31.946508', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:42:31.946878' WHERE "commontator_threads"."id" = 2 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 3  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:42:31.971526', "updated_at" = '2013-09-24 20:42:31.972532' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:42:31.982425' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:42:31.992996', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:42:31.994129' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:42:31.997048' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:42:31.999588', "updated_at" = '2013-09-24 20:42:32.000597' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:32 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:42:32.014039', "updated_at" = '2013-09-24 20:42:32.015230' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:32 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:32 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:42:32.063118', "updated_at" = '2013-09-24 20:42:32.064372' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:42:32.068484' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:42:32.070495', "updated_at" = '2013-09-24 20:42:32.071711' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:42:32.075561' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:32 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:42:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:32 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:42:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:42:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.0ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00]]  (12.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00]]  (4.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00]] SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:43:41.646464' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:43:41.666014' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:43:41.675119' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:43:41.683523', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:43:41.684664' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:43:41.722685' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 13ms (ActiveRecord: 0.7ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:43:41.728433', "updated_at" = '2013-09-24 20:43:41.729554' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:43:41.734810' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:43:41.736313', "editor_id" = 2, "updated_at" = '2013-09-24 20:43:41.737401' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:43:41.741817' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 2, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-09-24 20:43:41.757318' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 31ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (5.0ms) Sent mail to (9ms) Date: Tue, 24 Sep 2013 15:43:41 -0500 From: no-reply@example.com Message-ID: <5241f97de0322_69c4eb9fec355b4@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something else

Click here to visit this thread.

Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 109ms (ActiveRecord: 0.7ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 5ms  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 22ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:43:41.975242', "updated_at" = '2013-09-24 20:43:41.976750' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 19ms (ActiveRecord: 1.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:43:42.024665' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:43:42.033837' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:43:42.119637', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:43:42.120960' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:43:42.127646' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:43:42.131961', "editor_id" = 3, "updated_at" = '2013-09-24 20:43:42.133358' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:43:42.136727' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:43:42.140366', "editor_id" = 3, "updated_at" = '2013-09-24 20:43:42.141936' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:43:42.181588' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:43:42.191932' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 5ms  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:43:42.262867', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:43:42.264477' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:43:42.276338' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:43:42.282415', "editor_id" = 3, "updated_at" = '2013-09-24 20:43:42.283566' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:43:42.291410' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:43:42.292024', "updated_at" = '2013-09-24 20:43:42.293115' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 27ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 7ms  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:43:42.509329', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:43:42.510989' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:43:42.547594' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 5ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (26.8ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.2ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 31ms (ActiveRecord: 27.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (4.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:43:42.640563' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:43:42.641910' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 26ms (ActiveRecord: 0.2ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Tue, 24 Sep 2013 15:43:42 -0500 From: no-reply@example.com Message-ID: <5241f97ec66f4_69c4eb9fec356a0@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-09-24 20:43:42.828318', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:43:42.828726' WHERE "commontator_threads"."id" = 2 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 3  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:43:42.913985', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:43:42.915316' WHERE "commontator_threads"."id" = 2  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:43:42.943051' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:43:42.973163' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:43:42.974107' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:43:42.974972' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:43:42.978471' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:43:42.994851', "updated_at" = '2013-09-24 20:43:42.996080' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:43:43.027942', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:43:43.029052' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:43:43.033000' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:43:43.035731', "updated_at" = '2013-09-24 20:43:43.037136' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 25ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:43:43.079195', "updated_at" = '2013-09-24 20:43:43.080442' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:43:43.091285' WHERE "commontator_threads"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:43:43.103385', "updated_at" = '2013-09-24 20:43:43.104689' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:43:43.109098' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:43:43.110919', "updated_at" = '2013-09-24 20:43:43.112108' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:43:43.116144' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:43:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:43:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:43:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]]  (14.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:48:36.671377' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:48:36.681821' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:48:36.689866' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 29ms (ActiveRecord: 1.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:48:36.779842' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:48:36.788866' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.2ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:48:36.891168' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 7ms  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 2, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-09-24 20:48:36.956452' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:48:36.999345', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:48:37.000823' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:48:37.007283' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:48:37.011581', "editor_id" = 3, "updated_at" = '2013-09-24 20:48:37.012887' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:48:37.016305' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:48:37.020307', "editor_id" = 3, "updated_at" = '2013-09-24 20:48:37.021812' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:48:37.046690', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:48:37.048274' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.8ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:48:37.083316' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:48:37.090886', "editor_id" = 3, "updated_at" = '2013-09-24 20:48:37.092312' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:48:37.100380' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:48:37.100990', "updated_at" = '2013-09-24 20:48:37.102088' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:48:37.141627', "updated_at" = '2013-09-24 20:48:37.143042' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:48:37.207933', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:48:37.209415' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:48:37.236146' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:48:37.277370' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:48:37.287169' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:48:37.324813', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:48:37.326149' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:48:37.333605' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:48:37.338817', "updated_at" = '2013-09-24 20:48:37.340340' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:48:37.346169' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:48:37.348168', "editor_id" = 2, "updated_at" = '2013-09-24 20:48:37.349377' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (1.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:48:37.378094' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 29ms (ActiveRecord: 1.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (3.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:48:37.515259' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:48:37.516038' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (4.6ms) Sent mail to (28ms) Date: Tue, 24 Sep 2013 15:48:37 -0500 From: no-reply@example.com Message-ID: <5241faa5b04f7_69d389cfec7346b@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-09-24 20:48:37.738589', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:48:37.738944' WHERE "commontator_threads"."id" = 2 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 3  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:48:37.784983', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:48:37.785978' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:48:37.787822' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:48:37.843767' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:48:37.844686' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:48:37.845546' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:48:37.848991' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:48:37.864715', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:48:37.865852' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:48:37.868806' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:48:37.871339', "updated_at" = '2013-09-24 20:48:37.872339' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:48:37.879025', "updated_at" = '2013-09-24 20:48:37.879961' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:48:37.889770' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:48:37.897960', "updated_at" = '2013-09-24 20:48:37.898894' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:48:37.902529' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:48:37.904107', "updated_at" = '2013-09-24 20:48:37.905003' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:48:37.908074' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:48:37.972087', "updated_at" = '2013-09-24 20:48:37.973527' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (15.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (5.4ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:48:43.400354' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:48:43.409571' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:48:43.418698' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 5ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:48:43.462487', "updated_at" = '2013-09-24 20:48:43.463994' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:48:43.498447' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 8ms  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 45ms (ActiveRecord: 1.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:48:43.570423' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:48:43.579530' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:48:43.623401', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:48:43.624928' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:48:43.634577' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (17.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:48:43.728522' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:48:43.737941' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:48:43.779309', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:48:43.780858' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:48:43.815575' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:48:43.821733', "editor_id" = 3, "updated_at" = '2013-09-24 20:48:43.822899' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:48:43.830744' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:48:43.831348', "updated_at" = '2013-09-24 20:48:43.832450' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:48:43.915231', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:48:43.916393' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:48:43.922274' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:48:43.925345', "editor_id" = 3, "updated_at" = '2013-09-24 20:48:43.943576' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:48:43.946680' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:48:43.949988', "editor_id" = 3, "updated_at" = '2013-09-24 20:48:43.951148' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 2, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-09-24 20:48:43.995814' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:48:44.050055', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:48:44.051427' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:48:44.058880' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:48:44.064008', "updated_at" = '2013-09-24 20:48:44.065171' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:48:44.070068' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:48:44.071620', "editor_id" = 2, "updated_at" = '2013-09-24 20:48:44.072845' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (1.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:48:44.120243' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 31ms (ActiveRecord: 1.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (3.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:48:44.250477' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:48:44.251269' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (4.6ms) Sent mail to (28ms) Date: Tue, 24 Sep 2013 15:48:44 -0500 From: no-reply@example.com Message-ID: <5241faac6f46d_69da11af7ec94069@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:48:44.483310' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:48:44.484232' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:48:44.485088' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:48:44.488512' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-09-24 20:48:44.539663', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:48:44.540005' WHERE "commontator_threads"."id" = 2 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]] Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 3  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:48:44.587095', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:48:44.588131' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:48:44.589863' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:48:44.596123', "updated_at" = '2013-09-24 20:48:44.597086' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:48:44.601980' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:48:44.603718', "updated_at" = '2013-09-24 20:48:44.604649' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:48:44.608386' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:48:44.628237', "updated_at" = '2013-09-24 20:48:44.629185' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:48:44.637947' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:48:44.648303', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:48:44.649433' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:48:44.652337' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:48:44.655022', "updated_at" = '2013-09-24 20:48:44.656132' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:48:44.707254', "updated_at" = '2013-09-24 20:48:44.708610' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:48:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.0ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00]]  (12.5ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:51:01.812509' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:51:01.822802' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:51:01.830724' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:51:01.848429', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:51:01.849889' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:51:01.888117' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 13ms (ActiveRecord: 0.7ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:51:01.893871', "updated_at" = '2013-09-24 20:51:01.894977' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:51:01.900257' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:51:01.901780', "editor_id" = 2, "updated_at" = '2013-09-24 20:51:01.902870' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:51:01.907268' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:51:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 24ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:51:02.020843', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:51:02.022342' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:51:02.031576' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:51:02.051683', "updated_at" = '2013-09-24 20:51:02.053078' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 23ms (ActiveRecord: 1.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:51:02.104378' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:51:02.113402' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.9ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 31ms (ActiveRecord: 1.7ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:51:02.240329', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:51:02.241487' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:51:02.251013' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:51:02.257187', "editor_id" = 3, "updated_at" = '2013-09-24 20:51:02.258399' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:51:02.266288' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:51:02.266899', "updated_at" = '2013-09-24 20:51:02.268005' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (17.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:51:02.370151', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:51:02.371526' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 23ms (ActiveRecord: 17.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:51:02.377998' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:51:02.381968', "editor_id" = 3, "updated_at" = '2013-09-24 20:51:02.383311' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:51:02.387033' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:51:02.391172', "editor_id" = 3, "updated_at" = '2013-09-24 20:51:02.392681' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 2, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-09-24 20:51:02.407968' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:51:02.480876' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 7ms  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:51:02.541330' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:51:02.550465' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (3.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:51:02.651506' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:51:02.652290' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (4.7ms) Sent mail to (28ms) Date: Tue, 24 Sep 2013 15:51:02 -0500 From: no-reply@example.com Message-ID: <5241fb36d230b_69e5f3efe4839ba@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-09-24 20:51:02.900980', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:51:02.901334' WHERE "commontator_threads"."id" = 2 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 3  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:51:02.924946', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:51:02.925943' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:51:02.927777' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:51:02.978445' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:51:02.979370' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:51:02.980238' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:51:02.983651' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:03 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:51:03.017434', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:51:03.018616' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:51:03.021735' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:51:03.024383', "updated_at" = '2013-09-24 20:51:03.025386' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:03 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:51:03.031910', "updated_at" = '2013-09-24 20:51:03.032898' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:51:03.042572' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:03 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:51:03.057489', "updated_at" = '2013-09-24 20:51:03.058693' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:03 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:51:03.066912', "updated_at" = '2013-09-24 20:51:03.067835' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:51:03.071397' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:51:03.072957', "updated_at" = '2013-09-24 20:51:03.073848' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:51:03.076890' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:03 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:03 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:51:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:03 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:51:03 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:51:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.0ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (13.5ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (5.7ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:52:46.581565' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:52:46.590717' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:52:46.599747' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 8ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:52:46.701987', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:52:46.703416' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:52:46.710815' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:52:46.714663', "editor_id" = 3, "updated_at" = '2013-09-24 20:52:46.715803' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:52:46.718536' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:52:46.721562', "editor_id" = 3, "updated_at" = '2013-09-24 20:52:46.722700' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:52:46.731243', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:52:46.732382' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:52:46.739078' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:52:46.765588', "updated_at" = '2013-09-24 20:52:46.766750' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:52:46.772304' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:52:46.773970', "editor_id" = 2, "updated_at" = '2013-09-24 20:52:46.775067' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:52:46.779473' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 11ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:52:46.868472', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:52:46.869947' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:52:46.878807' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 20ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:52:46.942942' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 8ms  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (23.5ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:52:46.989549', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:52:46.990828' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:52:47.000610' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:52:47.006573', "editor_id" = 3, "updated_at" = '2013-09-24 20:52:47.007743' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:52:47.015513' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:52:47.016106', "updated_at" = '2013-09-24 20:52:47.017203' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 27ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:52:47.148032' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:52:47.158097' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 2, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-09-24 20:52:47.179607' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:52:47.230684' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (22.9ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:52:47.240497' WHERE "votes"."id" = 1  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 34ms (ActiveRecord: 24.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:52:47.310522', "updated_at" = '2013-09-24 20:52:47.311925' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (3.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:52:47.437093' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:52:47.437873' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (4.7ms) Sent mail to (8ms) Date: Tue, 24 Sep 2013 15:52:47 -0500 From: no-reply@example.com Message-ID: <5241fb9f9d978_69f04ceff066ba@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:52:47.667673', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:52:47.668687' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:52:47.670410' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-09-24 20:52:47.695795', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:52:47.696146' WHERE "commontator_threads"."id" = 2 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 3  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:52:47.737687' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:52:47.738619' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:52:47.739478' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:52:47.742882' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:52:47.803658', "updated_at" = '2013-09-24 20:52:47.804627' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:52:47.808858' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:52:47.810545', "updated_at" = '2013-09-24 20:52:47.811467' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:52:47.815198' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:52:47.829124', "updated_at" = '2013-09-24 20:52:47.830325' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:52:47.859511', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:52:47.860691' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:52:47.863793' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:52:47.865917', "updated_at" = '2013-09-24 20:52:47.866929' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:52:47.874211', "updated_at" = '2013-09-24 20:52:47.875387' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:52:47.884620' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.0ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]]  (12.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]]  (5.5ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:54:30.754666' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:54:30.763965' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:54:30.774292' WHERE "commontator_comments"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 11ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.8ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:30 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 2, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-09-24 20:54:31.104750' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (23.4ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:54:31.151143', "updated_at" = '2013-09-24 20:54:31.176318' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:54:31.187770', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:54:31.189024' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:54:31.196281' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:54:31.201009', "updated_at" = '2013-09-24 20:54:31.202133' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:54:31.207314' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:54:31.208815', "editor_id" = 2, "updated_at" = '2013-09-24 20:54:31.209916' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:54:31.214316' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:54:31.271674' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:54:31.280668' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 23ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:54:31.349233', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:54:31.350932' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:54:31.361980' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:54:31.402198' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:54:31.411835' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (1.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:54:31.489337', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:54:31.490688' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:54:31.496757' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:54:31.499854', "editor_id" = 3, "updated_at" = '2013-09-24 20:54:31.500995' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:54:31.504042' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:54:31.507201', "editor_id" = 3, "updated_at" = '2013-09-24 20:54:31.508370' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:54:31.535810' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 7ms  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:54:31.544657', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:54:31.545853' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:54:31.555264' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:54:31.561230', "editor_id" = 3, "updated_at" = '2013-09-24 20:54:31.562388' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:54:31.570256' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:54:31.570853', "updated_at" = '2013-09-24 20:54:31.571969' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (5.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:54:31.627632' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:54:31.628431' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (4.7ms) Sent mail to (8ms) Date: Tue, 24 Sep 2013 15:54:31 -0500 From: no-reply@example.com Message-ID: <5241fc07cbd22_69fb50d7f034915@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-09-24 20:54:31.851310', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:54:31.851667' WHERE "commontator_threads"."id" = 2 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 3  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:54:31.892800' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:54:31.893714' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:54:31.894551' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:54:31.897908' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:54:31.946951', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:54:31.947960' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:54:31.949783' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:54:31.974239', "updated_at" = '2013-09-24 20:54:31.975191' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:54:31.985462' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:54:31.993978', "updated_at" = '2013-09-24 20:54:31.994919' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:54:31.998613' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:54:32.000223', "updated_at" = '2013-09-24 20:54:32.001139' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:54:32.004196' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:32 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:54:32.012875', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:54:32.013993' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.0ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:54:32.016851' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:54:32.019364', "updated_at" = '2013-09-24 20:54:32.020362' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:32 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:54:32.053266', "updated_at" = '2013-09-24 20:54:32.054610' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:32 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:32 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:32 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:54:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:32 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:54:32 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:54:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.5ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (14.4ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (4.6ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]] SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:56:09.605935' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:56:09.614890' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:56:09.636246' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:56:09.682727', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:56:09.684167' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 13ms (ActiveRecord: 0.6ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:56:09.691452' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:56:09.695335', "editor_id" = 3, "updated_at" = '2013-09-24 20:56:09.696492' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:56:09.699296' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:56:09.702339', "editor_id" = 3, "updated_at" = '2013-09-24 20:56:09.703473' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:56:09.787100', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:56:09.788256' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:56:09.795772' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:56:09.801926', "updated_at" = '2013-09-24 20:56:09.803038' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:56:09.808183' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:56:09.809722', "editor_id" = 2, "updated_at" = '2013-09-24 20:56:09.810814' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:56:09.815216' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:56:09.833206', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:56:09.834980' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:56:09.843990' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:56:09.855440', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:56:09.857098' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:56:09.869234' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:56:09.875187', "editor_id" = 3, "updated_at" = '2013-09-24 20:56:09.876353' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:56:09.901202' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:56:09.901887', "updated_at" = '2013-09-24 20:56:09.903015' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:56:09.967773', "updated_at" = '2013-09-24 20:56:09.969402' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 2, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-09-24 20:56:09.986641' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 30ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 29ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:56:10.203991' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:56:10.213648' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:56:10.281773' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:56:10.292054' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:56:10.351995' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (5.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:56:10.493100' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:56:10.493903' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (4.6ms) Sent mail to (8ms) Date: Tue, 24 Sep 2013 15:56:10 -0500 From: no-reply@example.com Message-ID: <5241fc6aad363_6a038f07f07556b@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-09-24 20:56:10.725994', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:56:10.726355' WHERE "commontator_threads"."id" = 2 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 3  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.2ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:56:10.819219' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:56:10.820145' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:56:10.821010' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:56:10.824457' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:56:10.845301', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:56:10.846309' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:56:10.848015' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:56:10.854330', "updated_at" = '2013-09-24 20:56:10.855270' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:56:10.860149' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:56:10.861892', "updated_at" = '2013-09-24 20:56:10.862874' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:56:10.867911' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:56:10.882217', "updated_at" = '2013-09-24 20:56:10.883431' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:56:10.893635', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:56:10.895092' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:56:10.899024' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:56:10.901542', "updated_at" = '2013-09-24 20:56:10.902529' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 5ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:56:10.944656', "updated_at" = '2013-09-24 20:56:10.945801' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:56:10.955716' WHERE "commontator_threads"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.0ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (11.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (4.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:56:54.287708' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:56:54.298141' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:56:54.316341' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:56:54.360187', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:56:54.361642' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 13ms (ActiveRecord: 0.6ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:56:54.368938' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:56:54.372838', "editor_id" = 3, "updated_at" = '2013-09-24 20:56:54.373972' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:56:54.376796' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:56:54.379820', "editor_id" = 3, "updated_at" = '2013-09-24 20:56:54.380952' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 43ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:56:54.475290' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:56:54.484381' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 2, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-09-24 20:56:54.504289' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:56:54.570240' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:56:54.618805', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:56:54.620147' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:56:54.631067' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:56:54.637727', "editor_id" = 3, "updated_at" = '2013-09-24 20:56:54.639241' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:56:54.648856' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:56:54.649606', "updated_at" = '2013-09-24 20:56:54.651030' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:56:54.723218', "updated_at" = '2013-09-24 20:56:54.724846' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 21ms (ActiveRecord: 0.3ms)  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:56:54.941540' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:56:54.951421' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:54 UTC +00:00]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:56:55.032974', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:56:55.034467' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:56:55.043947' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:56:55.084723', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:56:55.085895' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:56:55.092201' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:56:55.096705', "updated_at" = '2013-09-24 20:56:55.097836' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:56:55.102452' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:56:55.103975', "editor_id" = 2, "updated_at" = '2013-09-24 20:56:55.105079' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:56:55.109522' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (18.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (5.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:56:55.181469' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:56:55.182261' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (4.6ms) Sent mail to (8ms) Date: Tue, 24 Sep 2013 15:56:55 -0500 From: no-reply@example.com Message-ID: <5241fc975f02a_6a15783fe81869b@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-09-24 20:56:55.405706', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:56:55.406052' WHERE "commontator_threads"."id" = 2 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 3  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:56:55.425538' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:56:55.426473' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:56:55.427340' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:56:55.430754' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (22.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:56:55.511789', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:56:55.512848' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:56:55.514575' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:56:55.529913', "updated_at" = '2013-09-24 20:56:55.530856' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:56:55.541293' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:56:55.549920', "updated_at" = '2013-09-24 20:56:55.550858' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:56:55.554500' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:56:55.556067', "updated_at" = '2013-09-24 20:56:55.557031' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:56:55.560072' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:56:55.568663', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:56:55.569789' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:56:55.572782' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:56:55.575463', "updated_at" = '2013-09-24 20:56:55.576504' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:56:55.644132', "updated_at" = '2013-09-24 20:56:55.645457' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:56:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (12.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (4.6ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:57:26.218718' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:57:26.228007' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:57:26.237318' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 11ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 31ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:57:26.409061', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:57:26.410504' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:57:26.417073' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:57:26.420970', "editor_id" = 3, "updated_at" = '2013-09-24 20:57:26.422135' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:57:26.425175' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:57:26.428317', "editor_id" = 3, "updated_at" = '2013-09-24 20:57:26.429453' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:57:26.515937' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:57:26.543438' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (1.0ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:57:26.639833', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:57:26.641062' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:57:26.648336' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:57:26.653133', "updated_at" = '2013-09-24 20:57:26.654298' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:57:26.660096' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:57:26.661857', "editor_id" = 2, "updated_at" = '2013-09-24 20:57:26.663038' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:57:26.667626' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 2, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-09-24 20:57:26.681356' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:57:26.707094', "updated_at" = '2013-09-24 20:57:26.708519' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:57:26.833878' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:57:26.843732' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 21ms (ActiveRecord: 0.3ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:57:26.906317', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:57:26.908074' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:57:26.919075' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (1.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:57:26.979499', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:57:26.980678' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:57:26.990142' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:57:26.996167', "editor_id" = 3, "updated_at" = '2013-09-24 20:57:26.997357' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:57:27.005107' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:57:27.005738', "updated_at" = '2013-09-24 20:57:27.006863' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (28.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:57:27.069339' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:57:27.070389' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (4.7ms) Sent mail to (29ms) Date: Tue, 24 Sep 2013 15:57:27 -0500 From: no-reply@example.com Message-ID: <5241fcb743fe7_6a1ecfffe489353@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:57:27.320047' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:57:27.320968' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:57:27.321840' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:57:27.325271' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:57:27.359483', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:57:27.360502' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.0ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:57:27.362206' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (23.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-09-24 20:57:27.408576', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:57:27.408942' WHERE "commontator_threads"."id" = 2 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 3  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:57:27.439186', "updated_at" = '2013-09-24 20:57:27.440206' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:57:27.444502' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:57:27.446225', "updated_at" = '2013-09-24 20:57:27.447132' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:57:27.450858' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:57:27.459609', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:57:27.460750' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:57:27.463630' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:57:27.466210', "updated_at" = '2013-09-24 20:57:27.467253' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:57:27.473878', "updated_at" = '2013-09-24 20:57:27.474813' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:57:27.483572' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:57:27.518547', "updated_at" = '2013-09-24 20:57:27.519876' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:57:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.0ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (11.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]] SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:58:41.246677' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:58:41.265624' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:58:41.274454' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 14ms (ActiveRecord: 0.8ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:58:41.332036', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:58:41.333263' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:58:41.342251' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:58:41.346910', "updated_at" = '2013-09-24 20:58:41.348018' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:58:41.353091' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:58:41.354581', "editor_id" = 2, "updated_at" = '2013-09-24 20:58:41.355669' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:58:41.360090' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:58:41.407635' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (4.8ms) Sent mail to (10ms) Date: Tue, 24 Sep 2013 15:58:41 -0500 From: no-reply@example.com Message-ID: <5241fd017b32c_6a32b12fec10536@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something else

Click here to visit this thread.

Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 108ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:58:41.602068' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:58:41.611117' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:58:41.650540' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:58:41.659553' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 21ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:58:41.721760', "updated_at" = '2013-09-24 20:58:41.723219' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:58:41.759568', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:58:41.761124' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:58:41.771585' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:58:41.779000', "editor_id" = 3, "updated_at" = '2013-09-24 20:58:41.780438' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:58:41.790418' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:58:41.791098', "updated_at" = '2013-09-24 20:58:41.792369' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:58:41.888431', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:58:41.889908' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:58:41.899059' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:58:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 2, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-09-24 20:58:42.014878' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (1.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:58:42.169777', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:58:42.170947' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:58:42.176850' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:58:42.179895', "editor_id" = 3, "updated_at" = '2013-09-24 20:58:42.181028' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:58:42.183770' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:58:42.186944', "editor_id" = 3, "updated_at" = '2013-09-24 20:58:42.188071' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (3.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:58:42.209210' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:58:42.209984' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (18.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (0.1ms) Sent mail to (3ms) Date: Tue, 24 Sep 2013 15:58:42 -0500 From: no-reply@example.com Message-ID: <5241fd0255038_6a32b12fec10676@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:58:42.399635', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:58:42.401066' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:58:42.403290' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (1.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-09-24 20:58:42.480150', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:58:42.480502' WHERE "commontator_threads"."id" = 2 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 3  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:58:42.499334' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:58:42.500256' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:58:42.501107' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:58:42.504722' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:58:42.515889', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:58:42.517034' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:58:42.519985' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:58:42.522520', "updated_at" = '2013-09-24 20:58:42.523554' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:58:42.530443', "updated_at" = '2013-09-24 20:58:42.531400' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:58:42.541103' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 20ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:58:42.593529', "updated_at" = '2013-09-24 20:58:42.594868' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:58:42.603864', "updated_at" = '2013-09-24 20:58:42.605210' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:58:42.609603' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:58:42.611438', "updated_at" = '2013-09-24 20:58:42.612757' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:58:42.616659' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:58:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.0ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (14.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]] SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:59:04.645587' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:59:04.654223' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:59:04.662394' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 29ms (ActiveRecord: 1.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:59:04.743142' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:59:04.752234' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (21.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 2, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-09-24 20:59:04.838295' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 20ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:59:04.994031', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:59:04.995624' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:59:05.006790' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:59:05.013597', "editor_id" = 3, "updated_at" = '2013-09-24 20:59:05.015135' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (23.0ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:59:05.024182' WHERE "commontator_comments"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:59:05.048024', "updated_at" = '2013-09-24 20:59:05.049758' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:59:05.111777' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:59:05.120841' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 27ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:59:05.265508', "updated_at" = '2013-09-24 20:59:05.267104' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:59:05.287328', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:59:05.288896' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:59:05.300063' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (24.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:59:05.373785', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:59:05.374977' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:59:05.381005' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:59:05.384100', "editor_id" = 3, "updated_at" = '2013-09-24 20:59:05.385250' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:59:05.388013' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:59:05.391091', "editor_id" = 3, "updated_at" = '2013-09-24 20:59:05.392230' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:59:05.400941', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:59:05.402098' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:59:05.408377' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:59:05.412871', "updated_at" = '2013-09-24 20:59:05.413987' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:59:05.418419' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:59:05.419935', "editor_id" = 2, "updated_at" = '2013-09-24 20:59:05.421065' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:59:05.425643' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (28.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:59:05.484807' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:59:05.485816' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (4.6ms) Sent mail to (28ms) Date: Tue, 24 Sep 2013 15:59:05 -0500 From: no-reply@example.com Message-ID: <5241fd19a972c_6a3ac617e071229@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-09-24 20:59:05.710574', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:59:05.710918' WHERE "commontator_threads"."id" = 2 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 3  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:59:05.720498', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:59:05.721502' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.0ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:59:05.723214' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:59:05.805604' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:59:05.806568' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:59:05.807434' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:59:05.810847' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:59:05.848088', "updated_at" = '2013-09-24 20:59:05.849063' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:59:05.858973' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:59:05.874805', "updated_at" = '2013-09-24 20:59:05.876021' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:59:05.884455', "updated_at" = '2013-09-24 20:59:05.885397' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:59:05.889048' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:59:05.890677', "updated_at" = '2013-09-24 20:59:05.891573' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:59:05.894621' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 23ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:59:05.940889', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:59:05.942181' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:59:05.945624' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:59:05.948147', "updated_at" = '2013-09-24 20:59:05.949428' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (12.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (5.6ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:59:52.153929' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:59:52.163271' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:59:52.172889' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:59:52.254304', "updated_at" = '2013-09-24 20:59:52.255708' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 24ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:59:52.371309' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:59:52.380437' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:59:52.394783', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:59:52.396062' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:59:52.406457' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:59:52.412348', "editor_id" = 3, "updated_at" = '2013-09-24 20:59:52.413507' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:59:52.421184' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:59:52.421776', "updated_at" = '2013-09-24 20:59:52.422856' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:59:52.469406', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:59:52.470632' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:59:52.477549' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:59:52.482759', "updated_at" = '2013-09-24 20:59:52.484055' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:59:52.489481' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:59:52.491372', "editor_id" = 2, "updated_at" = '2013-09-24 20:59:52.492712' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 20:59:52.498412' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (23.3ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:59:52.552592' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 32ms (ActiveRecord: 23.9ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 20:59:52.709616' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 20:59:52.719103' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:59:52.738430', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:59:52.739753' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:59:52.747333' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:59:52.751951', "editor_id" = 3, "updated_at" = '2013-09-24 20:59:52.753512' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 20:59:52.757330' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:59:52.761707', "editor_id" = 3, "updated_at" = '2013-09-24 20:59:52.763220' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 21ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (1.4ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 1.5ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 20:59:52.937974', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 20:59:52.939467' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 20:59:52.948598' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 2, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-09-24 20:59:52.964665' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (5.7ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:59:53.049403' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:59:53.050191' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (4.6ms) Sent mail to (8ms) Date: Tue, 24 Sep 2013 15:59:53 -0500 From: no-reply@example.com Message-ID: <5241fd493fb6d_6a4810cdfe062851@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:59:53.274024', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:59:53.275050' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:59:53.276823' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (23.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-09-24 20:59:53.365377', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:59:53.365722' WHERE "commontator_threads"."id" = 2 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 3  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:59:53.389157' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 20:59:53.390076' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 20:59:53.390928' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 20:59:53.394348' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:59:53.402267', "updated_at" = '2013-09-24 20:59:53.403210' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:59:53.408078' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:59:53.409847', "updated_at" = '2013-09-24 20:59:53.410757' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:59:53.414584' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:59:53.421302', "updated_at" = '2013-09-24 20:59:53.422235' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:59:53.431045' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:59:53.441432', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 20:59:53.442558' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 20:59:53.445527' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:59:53.448135', "updated_at" = '2013-09-24 20:59:53.449134' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 20:59:53.516734', "updated_at" = '2013-09-24 20:59:53.517995' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 20:59:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]]  (12.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]]  (6.3ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:00:59.718752' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:00:59.729328' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:00:59.737274' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:00:59.799648', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:00:59.801032' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 11ms (ActiveRecord: 0.6ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:00:59.807304' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:00:59.811272', "editor_id" = 3, "updated_at" = '2013-09-24 21:00:59.812450' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 21:00:59.815301' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:00:59.818412', "editor_id" = 3, "updated_at" = '2013-09-24 21:00:59.819525' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:00:59.836946', "updated_at" = '2013-09-24 21:00:59.838333' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:00:59.870613', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:00:59.872102' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:00:59.882958' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:00:59.888961', "editor_id" = 3, "updated_at" = '2013-09-24 21:00:59.890118' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 21:00:59.897849' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:00:59.898459', "updated_at" = '2013-09-24 21:00:59.899537' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 24ms (ActiveRecord: 0.7ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 2, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-09-24 21:01:00.030915' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:01:00.062356', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:01:00.063997' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:01:00.074660' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (1.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 21:01:00.162043' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 21:01:00.171265' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 21:01:00.211081' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 21:01:00.220108' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:01:00.331641', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:01:00.333224' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:01:00.340941' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:01:00.346315', "updated_at" = '2013-09-24 21:01:00.347543' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 21:01:00.353120' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:01:00.355105', "editor_id" = 2, "updated_at" = '2013-09-24 21:01:00.356689' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 21:01:00.362755' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (1.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 31ms (ActiveRecord: 1.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 21:01:00.488908' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (5.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 21:01:00.587359' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 21:01:00.588155' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (4.6ms) Sent mail to (8ms) Date: Tue, 24 Sep 2013 16:01:00 -0500 From: no-reply@example.com Message-ID: <5241fd8cc1ebc_6a50b41fe067080@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-09-24 21:01:00.810696', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 21:01:00.811040' WHERE "commontator_threads"."id" = 2 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 3  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 21:01:00.848895' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 21:01:00.849804' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 21:01:00.850650' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 21:01:00.854047' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:01:00.860917', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 21:01:00.861931' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.2ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:01:00.886012' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:01:00.934830', "updated_at" = '2013-09-24 21:01:00.935770' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:01:00.940646' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:01:00.942371', "updated_at" = '2013-09-24 21:01:00.943284' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:01:00.946967' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:01:00.961220', "updated_at" = '2013-09-24 21:01:00.962429' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:01:00.985659', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 21:01:00.986685' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:01:01.008291' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:01:01.010630', "updated_at" = '2013-09-24 21:01:01.011706' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:01 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:01 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:01 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:01 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:01 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:01 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:01 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:01 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:01:01.037203', "updated_at" = '2013-09-24 21:01:01.038436' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:01:01.048221' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:01 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:01 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:01 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:01 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:01 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:01 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:01 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:01 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]]  (13.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]]  (5.4ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:01:17.731824' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:01:17.743568' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:01:17.752939' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 14ms (ActiveRecord: 0.8ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (20.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:01:17.967527', "updated_at" = '2013-09-24 21:01:17.969055' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 21:01:18.038977' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:01:18.053505', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:01:18.054904' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:01:18.061684' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:01:18.066233', "editor_id" = 3, "updated_at" = '2013-09-24 21:01:18.067614' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 21:01:18.070895' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:01:18.074610', "editor_id" = 3, "updated_at" = '2013-09-24 21:01:18.075940' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (23.2ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 33ms (ActiveRecord: 24.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 21:01:18.137298' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 21:01:18.146532' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:01:18.189298', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:01:18.190448' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:01:18.200707' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:01:18.206628', "editor_id" = 3, "updated_at" = '2013-09-24 21:01:18.207789' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 21:01:18.215734' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:01:18.216358', "updated_at" = '2013-09-24 21:01:18.217438' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 11ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 21:01:18.364775' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 21:01:18.375048' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:01:18.409452', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:01:18.411167' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (24.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:01:18.443073' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 31ms (ActiveRecord: 24.7ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:01:18.447953', "updated_at" = '2013-09-24 21:01:18.449119' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 21:01:18.453819' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:01:18.455342', "editor_id" = 2, "updated_at" = '2013-09-24 21:01:18.456451' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 21:01:18.460886' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 2, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-09-24 21:01:18.474432' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:01:18.524152', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:01:18.525721' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:01:18.534846' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (5.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 21:01:18.609163' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 21:01:18.609966' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (4.6ms) Sent mail to (8ms) Date: Tue, 24 Sep 2013 16:01:18 -0500 From: no-reply@example.com Message-ID: <5241fd9ec81f6_6a58bff7e88904@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 21:01:18.851937' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 21:01:18.852886' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 21:01:18.853817' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 21:01:18.858336' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (23.9ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-09-24 21:01:18.927595', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 21:01:18.928066' WHERE "commontator_threads"."id" = 2 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 3  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:01:18.957702', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 21:01:18.958703' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:01:18.960431' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:01:18.986888', "updated_at" = '2013-09-24 21:01:18.987834' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:01:18.997523' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:19 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:01:19.005787', "updated_at" = '2013-09-24 21:01:19.006735' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:01:19.011719' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:01:19.013917', "updated_at" = '2013-09-24 21:01:19.015189' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:01:19.018351' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:19 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 23ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:01:19.054092', "updated_at" = '2013-09-24 21:01:19.055444' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:19 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:01:19.066271', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 21:01:19.067646' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:01:19.071894' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:01:19.075389', "updated_at" = '2013-09-24 21:01:19.077031' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:19 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:19 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:01:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:19 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:01:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (14.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (6.3ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:07:07.273077' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:07:07.282236' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:07:07.291589' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 11ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 20ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 18ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 21:07:07.604981' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 21:07:07.614456' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 21:07:07.656890' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (23.3ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.3ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 21:07:07.690497' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 34ms (ActiveRecord: 24.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:07:07.740487', "updated_at" = '2013-09-24 21:07:07.741880' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 2, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-09-24 21:07:07.757442' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:07:07.785016', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:07:07.786561' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:07:07.795632' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:07:07.825523', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:07:07.826852' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:07:07.834131' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:07:07.839463', "updated_at" = '2013-09-24 21:07:07.840897' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 21:07:07.846805' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:07:07.848634', "editor_id" = 2, "updated_at" = '2013-09-24 21:07:07.850002' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 21:07:07.855208' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 21:07:07.883448' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (1.2ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:07:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:07:07.995924', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:07:07.997128' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:07:08.006415' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:07:08.012344', "editor_id" = 3, "updated_at" = '2013-09-24 21:07:08.013519' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 21:07:08.021618' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:07:08.022242', "updated_at" = '2013-09-24 21:07:08.023349' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:07:08.039325', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:07:08.040493' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:07:08.046393' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:07:08.049581', "editor_id" = 3, "updated_at" = '2013-09-24 21:07:08.050707' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 21:07:08.053521' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:07:08.056607', "editor_id" = 3, "updated_at" = '2013-09-24 21:07:08.057747' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (5.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 21:07:08.111176' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 21:07:08.111969' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (4.8ms) Sent mail to (8ms) Date: Tue, 24 Sep 2013 16:07:08 -0500 From: no-reply@example.com Message-ID: <5241fefc4ddcd_6a6dae5fec499ec@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-09-24 21:07:08.335404', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 21:07:08.335745' WHERE "commontator_threads"."id" = 2 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 3  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:07:08.360176', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 21:07:08.361222' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.0ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:07:08.362919' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.3ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 21:07:08.417572' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 21:07:08.418582' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 21:07:08.419428' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 21:07:08.422872' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:07:08.497517', "updated_at" = '2013-09-24 21:07:08.498739' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:07:08.509199', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 21:07:08.510217' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:07:08.513096' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:07:08.515063', "updated_at" = '2013-09-24 21:07:08.516096' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:07:08.542364', "updated_at" = '2013-09-24 21:07:08.543379' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:07:08.553893' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:07:08.562735', "updated_at" = '2013-09-24 21:07:08.564035' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:07:08.568247' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:07:08.570036', "updated_at" = '2013-09-24 21:07:08.571194' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:07:08.575106' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:07:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00]]  (12.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:08:19.776311' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:08:19.797286' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:08:19.806154' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:08:19.815021', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:08:19.816168' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:08:19.855162' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 14ms (ActiveRecord: 0.7ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:08:19.861165', "updated_at" = '2013-09-24 21:08:19.862283' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 21:08:19.867602' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:08:19.869111', "editor_id" = 2, "updated_at" = '2013-09-24 21:08:19.870189' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 21:08:19.874567' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 21:08:19.970152' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.7ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:19 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 23ms (ActiveRecord: 1.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 21:08:20.020617' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 21:08:20.029643' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:08:20.126253', "updated_at" = '2013-09-24 21:08:20.127720' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 2, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-09-24 21:08:20.145223' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (1.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 30ms (ActiveRecord: 1.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 26ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 21:08:20.321568' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 21:08:20.331540' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:08:20.375425', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:08:20.376891' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:08:20.387452' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:08:20.394533', "editor_id" = 3, "updated_at" = '2013-09-24 21:08:20.396090' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 21:08:20.405765' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:08:20.406427', "updated_at" = '2013-09-24 21:08:20.407649' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 20ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:08:20.552620', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:08:20.554118' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:08:20.563262' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:08:20.578073', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:08:20.579213' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:08:20.585193' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:08:20.588251', "editor_id" = 3, "updated_at" = '2013-09-24 21:08:20.589366' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 21:08:20.592148' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:08:20.595180', "editor_id" = 3, "updated_at" = '2013-09-24 21:08:20.596298' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 21:08:20.668957' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 21:08:20.669745' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (4.6ms) Sent mail to (8ms) Date: Tue, 24 Sep 2013 16:08:20 -0500 From: no-reply@example.com Message-ID: <5241ff44d5d7b_6a768b9fe86756@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:08:20.901577', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 21:08:20.902580' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:08:20.904307' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 21:08:20.927662' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 21:08:20.928564' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 21:08:20.929408' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 21:08:20.932808' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-09-24 21:08:20.980835', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 21:08:20.981175' WHERE "commontator_threads"."id" = 2 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 3  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:08:21.014273', "updated_at" = '2013-09-24 21:08:21.015221' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:08:21.020072' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:08:21.021792', "updated_at" = '2013-09-24 21:08:21.022702' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:08:21.026354' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:08:21.033013', "updated_at" = '2013-09-24 21:08:21.033948' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:08:21.042782' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (18.9ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 23ms (ActiveRecord: 19.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:08:21.111206', "updated_at" = '2013-09-24 21:08:21.112476' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:08:21.123434', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 21:08:21.124779' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:08:21.127821' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:08:21.130339', "updated_at" = '2013-09-24 21:08:21.131506' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:08:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (12.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (5.3ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:09:09.088896' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:09:09.097936' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:09:09.106933' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:09:09.148886', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:09:09.150447' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:09:09.165247' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 27ms (ActiveRecord: 0.8ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:09:09.253173', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:09:09.254340' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:09:09.260241' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:09:09.263272', "editor_id" = 3, "updated_at" = '2013-09-24 21:09:09.264405' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 21:09:09.267143' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:09:09.270154', "editor_id" = 3, "updated_at" = '2013-09-24 21:09:09.271267' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 11ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:09:09.453911', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:09:09.455399' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:09:09.466079' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (1.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 27ms (ActiveRecord: 1.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:09:09.495792', "editor_id" = 3, "updated_at" = '2013-09-24 21:09:09.497200' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 21:09:09.505865' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:09:09.506470', "updated_at" = '2013-09-24 21:09:09.507579' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:09:09.520129', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:09:09.521338' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:09:09.527661' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:09:09.532129', "updated_at" = '2013-09-24 21:09:09.533269' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 21:09:09.537692' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:09:09.539155', "editor_id" = 2, "updated_at" = '2013-09-24 21:09:09.540279' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 21:09:09.544675' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 2, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-09-24 21:09:09.637493' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 21:09:09.713573' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 21:09:09.723102' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:09:09.744091', "updated_at" = '2013-09-24 21:09:09.763386' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 25ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (1.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 1.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 21:09:09.832968' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 21:09:09.867575' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 21:09:09.876574' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (5.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 21:09:09.932994' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 21:09:09.933778' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (4.7ms) Sent mail to (8ms) Date: Tue, 24 Sep 2013 16:09:10 -0500 From: no-reply@example.com Message-ID: <5241ff76218ec_6a7ea36fec70925@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-09-24 21:09:10.200344', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 21:09:10.200678' WHERE "commontator_threads"."id" = 2 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 3  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 21:09:10.242086' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 21:09:10.243001' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 21:09:10.243844' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 21:09:10.247238' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:09:10.266549', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 21:09:10.267539' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.0ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:09:10.269229' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:09:10.283650', "updated_at" = '2013-09-24 21:09:10.284864' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:09:10.325250', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 21:09:10.326251' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:09:10.329053' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:09:10.330937', "updated_at" = '2013-09-24 21:09:10.331908' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (18.7ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:09:10.357326', "updated_at" = '2013-09-24 21:09:10.358488' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:09:10.368641' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:09:10.377262', "updated_at" = '2013-09-24 21:09:10.378491' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:09:10.382611' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:09:10.384603', "updated_at" = '2013-09-24 21:09:10.385800' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:09:10.389789' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (13.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (4.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]] SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:10:23.457604' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:10:23.466664' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:10:23.474985' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 15ms (ActiveRecord: 0.9ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 23ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:10:23.614784', "updated_at" = '2013-09-24 21:10:23.616323' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 21:10:23.692476' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 21:10:23.701721' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 2, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-09-24 21:10:23.721469' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 21:10:23.786820' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 21:10:23.796849' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:10:23.914877', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:10:23.916035' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:10:23.922948' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:10:23.927739', "updated_at" = '2013-09-24 21:10:23.928876' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 21:10:23.934081' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:10:23.935580', "editor_id" = 2, "updated_at" = '2013-09-24 21:10:23.936685' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 21:10:23.941098' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 21:10:23.967659' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:23 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 28ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:10:24.055946', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:10:24.057442' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:10:24.067301' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:10:24.161672', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:10:24.162843' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:10:24.172302' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:10:24.178244', "editor_id" = 3, "updated_at" = '2013-09-24 21:10:24.179413' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 21:10:24.187201' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:10:24.187809', "updated_at" = '2013-09-24 21:10:24.188933' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:10:24.224020', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:10:24.225207' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:10:24.231112' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:10:24.234194', "editor_id" = 3, "updated_at" = '2013-09-24 21:10:24.235333' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 21:10:24.238088' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:10:24.241131', "editor_id" = 3, "updated_at" = '2013-09-24 21:10:24.242248' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (5.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 21:10:24.314451' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 21:10:24.315256' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (4.7ms) Sent mail to (9ms) Date: Tue, 24 Sep 2013 16:10:24 -0500 From: no-reply@example.com Message-ID: <5241ffc07f934_6a876067ec254ab@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-09-24 21:10:24.554667', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 21:10:24.555011' WHERE "commontator_threads"."id" = 2 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 3  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 21:10:24.582878' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 21:10:24.583793' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 21:10:24.584654' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 21:10:24.588173' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:10:24.637195', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 21:10:24.638204' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.0ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:10:24.639936' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:10:24.663441', "updated_at" = '2013-09-24 21:10:24.664401' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:10:24.669260' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:10:24.670976', "updated_at" = '2013-09-24 21:10:24.671896' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:10:24.675612' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:10:24.690083', "updated_at" = '2013-09-24 21:10:24.691325' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:10:24.701796', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 21:10:24.702854' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:10:24.705724' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:10:24.707640', "updated_at" = '2013-09-24 21:10:24.708668' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 22ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:10:24.754132', "updated_at" = '2013-09-24 21:10:24.755124' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:10:24.764423' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:10:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.0ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (10.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (4.6ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:13:27.420394' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:13:27.430850' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:13:27.450509' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 8ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:13:27.548120', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:13:27.549725' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:13:27.559279' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:13:27.591443', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:13:27.616737' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:13:27.627572' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:13:27.633708', "editor_id" = 3, "updated_at" = '2013-09-24 21:13:27.634889' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 21:13:27.642814' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:13:27.643424', "updated_at" = '2013-09-24 21:13:27.644536' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 20ms (ActiveRecord: 1.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 21:13:27.731285' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 21:13:27.740432' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 26ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 2, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-09-24 21:13:27.778999' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:13:27.808215', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:13:27.809562' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:13:27.816247' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:13:27.819786', "editor_id" = 3, "updated_at" = '2013-09-24 21:13:27.821320' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 21:13:27.825909' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:13:27.829991', "editor_id" = 3, "updated_at" = '2013-09-24 21:13:27.831252' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 12ms (ActiveRecord: 1.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 21:13:27.951262' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 21:13:27.960344' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:13:28.031248', "updated_at" = '2013-09-24 21:13:28.033177' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:13:28.045113', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:13:28.047357' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:13:28.058620' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 11ms (ActiveRecord: 0.8ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:13:28.066824', "updated_at" = '2013-09-24 21:13:28.069107' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 21:13:28.077551' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:13:28.080041', "editor_id" = 2, "updated_at" = '2013-09-24 21:13:28.082339' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 21:13:28.090845' WHERE "commontator_comments"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (1.6ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 13ms (ActiveRecord: 2.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (37.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 21:13:28.398059' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 21:13:28.399493' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (4.7ms) Sent mail to (28ms) Date: Tue, 24 Sep 2013 16:13:28 -0500 From: no-reply@example.com Message-ID: <524200789fb82_6a9510427ec7746c@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-09-24 21:13:28.670785', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 21:13:28.671135' WHERE "commontator_threads"."id" = 2 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 3  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 21:13:28.736047' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 21:13:28.736969' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 21:13:28.737823' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 21:13:28.741212' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:13:28.795912', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 21:13:28.796927' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:13:28.798660' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:13:28.804971', "updated_at" = '2013-09-24 21:13:28.805924' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:13:28.810868' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:13:28.813289', "updated_at" = '2013-09-24 21:13:28.814586' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:13:28.818871' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:13:28.866895', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 21:13:28.868514' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:13:28.872766' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:13:28.875697', "updated_at" = '2013-09-24 21:13:28.876793' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:13:28.885864', "updated_at" = '2013-09-24 21:13:28.887233' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:13:28.923911' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:13:28.944531', "updated_at" = '2013-09-24 21:13:28.946260' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.0ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (12.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (4.6ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:13:36.301988' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:13:36.312426' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:13:36.320208' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 29ms (ActiveRecord: 1.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 21:13:36.410154' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 21:13:36.419236' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:13:36.438264', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:13:36.439696' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:13:36.446115' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.2ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:13:36.471660', "editor_id" = 3, "updated_at" = '2013-09-24 21:13:36.473125' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 27ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 21:13:36.476430' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:13:36.479853', "editor_id" = 3, "updated_at" = '2013-09-24 21:13:36.481008' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:13:36.579478', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:13:36.580690' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:13:36.590891' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:13:36.614746', "editor_id" = 3, "updated_at" = '2013-09-24 21:13:36.616027' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 21:13:36.624741' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:13:36.625443', "updated_at" = '2013-09-24 21:13:36.626701' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.4ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 33ms (ActiveRecord: 1.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 21:13:36.725964' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 21:13:36.735352' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:13:36.783995', "updated_at" = '2013-09-24 21:13:36.785415' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 2, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-09-24 21:13:36.801639' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (17.5ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 21ms (ActiveRecord: 17.7ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:13:36.922445', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:13:36.924049' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:13:36.934947' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (1.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:13:37.046587', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:13:37.047830' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:13:37.054290' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:13:37.058873', "updated_at" = '2013-09-24 21:13:37.060016' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 21:13:37.064573' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:13:37.066251', "editor_id" = 2, "updated_at" = '2013-09-24 21:13:37.067525' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 21:13:37.072117' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (25.8ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 21:13:37.151199' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 21:13:37.152214' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (4.6ms) Sent mail to (29ms) Date: Tue, 24 Sep 2013 16:13:37 -0500 From: no-reply@example.com Message-ID: <5242008157e2d_6a9cb3b7e414814@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-09-24 21:13:37.400785', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 21:13:37.401131' WHERE "commontator_threads"."id" = 2 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 3  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:13:37.441281', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 21:13:37.442286' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.0ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:13:37.443992' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 21:13:37.482165' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 21:13:37.483098' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 21:13:37.483966' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 21:13:37.487397' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:13:37.520364', "updated_at" = '2013-09-24 21:13:37.521391' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:13:37.531403' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:13:37.547194', "updated_at" = '2013-09-24 21:13:37.548449' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:13:37.556969', "updated_at" = '2013-09-24 21:13:37.557905' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:13:37.561576' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:13:37.563152', "updated_at" = '2013-09-24 21:13:37.564067' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:13:37.567145' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:13:37.575346', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 21:13:37.576361' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:13:37.598463' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:13:37.600703', "updated_at" = '2013-09-24 21:13:37.601740' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.0ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (13.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]] SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:13:59.147128' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:13:59.155736' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:13:59.163937' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:13:59.220250', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:13:59.221759' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:13:59.236822' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 25ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:13:59.302944', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:13:59.304119' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:13:59.310036' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:13:59.313099', "editor_id" = 3, "updated_at" = '2013-09-24 21:13:59.314228' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 21:13:59.316983' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:13:59.320157', "editor_id" = 3, "updated_at" = '2013-09-24 21:13:59.321340' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 23ms (ActiveRecord: 1.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 21:13:59.371099' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 21:13:59.380147' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:13:59.489950', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:13:59.491286' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:13:59.502800' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:13:59.509438', "editor_id" = 3, "updated_at" = '2013-09-24 21:13:59.510786' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 21:13:59.520032' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:13:59.520678', "updated_at" = '2013-09-24 21:13:59.521887' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (22.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 2, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-09-24 21:13:59.564922' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 21:13:59.658473' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 21:13:59.667545' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (17.9ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.2ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:13:59.819939', "updated_at" = '2013-09-24 21:13:59.839695' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:13:59.852023', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:13:59.853420' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:13:59.860331' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:13:59.865465', "updated_at" = '2013-09-24 21:13:59.866676' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 21:13:59.872081' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:13:59.873988', "editor_id" = 2, "updated_at" = '2013-09-24 21:13:59.875522' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 21:13:59.881293' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (26.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 21:13:59.970795' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 21:13:59.971810' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (4.7ms) Sent mail to (29ms) Date: Tue, 24 Sep 2013 16:14:00 -0500 From: no-reply@example.com Message-ID: <524200982c075_6aa441dfe882783@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-09-24 21:14:00.196883', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 21:14:00.197233' WHERE "commontator_threads"."id" = 2 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 3  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:14:00.234468', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 21:14:00.235468' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:14:00.237211' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 21:14:00.251895' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 21:14:00.252854' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 21:14:00.253693' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 21:14:00.257189' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:14:00.335406', "updated_at" = '2013-09-24 21:14:00.336409' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:14:00.340821' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:14:00.342589', "updated_at" = '2013-09-24 21:14:00.343514' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:14:00.347240' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:14:00.371324', "updated_at" = '2013-09-24 21:14:00.372303' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:14:00.381117' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 21ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:14:00.416526', "updated_at" = '2013-09-24 21:14:00.417856' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:14:00.428845', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 21:14:00.430262' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:14:00.433795' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:14:00.436182', "updated_at" = '2013-09-24 21:14:00.437479' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:14:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (14.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (4.9ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:20:41.506892' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:20:41.517501' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:20:41.525918' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 11ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 30ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:20:41.685347', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:20:41.686837' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:20:41.696766' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:20:41.763527', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:20:41.764739' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:20:41.770726' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:20:41.773806', "editor_id" = 3, "updated_at" = '2013-09-24 21:20:41.774953' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 21:20:41.777722' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:20:41.780760', "editor_id" = 3, "updated_at" = '2013-09-24 21:20:41.781878' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:20:41.837551', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:20:41.838976' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:20:41.847049' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:20:41.852839', "updated_at" = '2013-09-24 21:20:41.854224' WHERE "commontator_comments"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 21:20:41.860207' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:20:41.862088', "editor_id" = 2, "updated_at" = '2013-09-24 21:20:41.863678' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 21:20:41.869290' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (22.5ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (1.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 31ms (ActiveRecord: 24.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:41 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 21:20:42.011475' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 21:20:42.020545' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:20:42.034505', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:20:42.053436' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:20:42.064012' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:20:42.071179', "editor_id" = 3, "updated_at" = '2013-09-24 21:20:42.072606' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 21:20:42.082287' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:20:42.083077', "updated_at" = '2013-09-24 21:20:42.084665' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:20:42.105286', "updated_at" = '2013-09-24 21:20:42.106725' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 2, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-09-24 21:20:42.124914' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (1.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 21:20:42.280283' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 21:20:42.289418' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (28.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 21:20:42.353717' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 21:20:42.354721' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (4.7ms) Sent mail to (29ms) Date: Tue, 24 Sep 2013 16:20:42 -0500 From: no-reply@example.com Message-ID: <5242022a8972b_6ab98f37e8104bc@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-09-24 21:20:42.579577', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 21:20:42.579925' WHERE "commontator_threads"."id" = 2 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 3  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:20:42.604563', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 21:20:42.605568' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:20:42.607274' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 21:20:42.621770' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 21:20:42.622691' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 21:20:42.623546' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 21:20:42.626932' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:20:42.720666', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 21:20:42.721832' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:20:42.724826' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:20:42.727395', "updated_at" = '2013-09-24 21:20:42.728397' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:20:42.734900', "updated_at" = '2013-09-24 21:20:42.735841' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:20:42.739988' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:20:42.741674', "updated_at" = '2013-09-24 21:20:42.742594' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:20:42.746291' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:20:42.770279', "updated_at" = '2013-09-24 21:20:42.771221' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 21ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:20:42.799674' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:20:42.816316', "updated_at" = '2013-09-24 21:20:42.817597' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:20:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.0ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (13.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (4.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]] SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:22:13.452612' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:22:13.471626' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:22:13.480389' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 29ms (ActiveRecord: 1.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 21:22:13.561345' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 21:22:13.570288' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (21.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 31ms (ActiveRecord: 21.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 21:22:13.632770' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 21:22:13.641918' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:22:13.740053', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:22:13.741201' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:22:13.765452' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 24ms (ActiveRecord: 0.6ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:22:13.770367', "updated_at" = '2013-09-24 21:22:13.771517' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 21:22:13.776788' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:22:13.778318', "editor_id" = 2, "updated_at" = '2013-09-24 21:22:13.779448' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 21:22:13.784405' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 2, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-09-24 21:22:13.799167' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 26ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:22:13.912024', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:22:13.913606' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:22:13.922646' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:13 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:22:14.013089', "updated_at" = '2013-09-24 21:22:14.014479' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:22:14.094045', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:22:14.095811' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:22:14.103245' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:22:14.107449', "editor_id" = 3, "updated_at" = '2013-09-24 21:22:14.108907' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 21:22:14.112055' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:22:14.115728', "editor_id" = 3, "updated_at" = '2013-09-24 21:22:14.117093' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (23.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 28ms (ActiveRecord: 23.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:22:14.175387', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:22:14.176560' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:22:14.185931' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:22:14.191807', "editor_id" = 3, "updated_at" = '2013-09-24 21:22:14.192995' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 21:22:14.201180' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:22:14.201787', "updated_at" = '2013-09-24 21:22:14.202906' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (28.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 21:22:14.290194' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 21:22:14.291199' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (4.6ms) Sent mail to (28ms) Date: Tue, 24 Sep 2013 16:22:14 -0500 From: no-reply@example.com Message-ID: <52420286798e4_6ac5f54fec6684@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:22:14.511152', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 21:22:14.512170' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:22:14.513926' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-09-24 21:22:14.541987', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 21:22:14.542323' WHERE "commontator_threads"."id" = 2 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 3  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 21:22:14.560893' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 21:22:14.561780' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 21:22:14.562742' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 21:22:14.566187' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (22.7ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:22:14.639358', "updated_at" = '2013-09-24 21:22:14.640318' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:22:14.650694' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:22:14.669302', "updated_at" = '2013-09-24 21:22:14.670842' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:22:14.700124', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 21:22:14.701160' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:22:14.703993' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:22:14.705907', "updated_at" = '2013-09-24 21:22:14.706931' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:22:14.732908', "updated_at" = '2013-09-24 21:22:14.733896' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:22:14.737784' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:22:14.739662', "updated_at" = '2013-09-24 21:22:14.740748' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:22:14.744438' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (4.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (12.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:22:33.408564' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:22:33.417790' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:22:33.437371' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:22:33.480719', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:22:33.482156' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 13ms (ActiveRecord: 0.6ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:22:33.489440' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:22:33.493335', "editor_id" = 3, "updated_at" = '2013-09-24 21:22:33.494473' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 21:22:33.497279' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:22:33.500355', "editor_id" = 3, "updated_at" = '2013-09-24 21:22:33.501486' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:22:33.510637', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:22:33.511788' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:22:33.522370' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:22:33.528426', "editor_id" = 3, "updated_at" = '2013-09-24 21:22:33.529637' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 21:22:33.537716' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:22:33.538343', "updated_at" = '2013-09-24 21:22:33.539473' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (21.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:22:33.606341', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:22:33.607864' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:22:33.617038' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 35ms (ActiveRecord: 1.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:22:33.841968', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:22:33.843135' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:22:33.850150' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:22:33.854828', "updated_at" = '2013-09-24 21:22:33.855975' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 21:22:33.860555' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:22:33.862055', "editor_id" = 2, "updated_at" = '2013-09-24 21:22:33.863170' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 21:22:33.867613' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 27ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 21:22:33.966785' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 21:22:33.976915' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:22:34.083291', "updated_at" = '2013-09-24 21:22:34.102387' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (1.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 21:22:34.164966' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 21:22:34.174210' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 2, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-09-24 21:22:34.193472' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 21:22:34.263915' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 21:22:34.264933' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (4.6ms) Sent mail to (8ms) Date: Tue, 24 Sep 2013 16:22:34 -0500 From: no-reply@example.com Message-ID: <5242029a75199_6acd8147f018632@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 21:22:34.517507' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 21:22:34.518761' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 21:22:34.520062' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 21:22:34.524454' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-09-24 21:22:34.535080', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 21:22:34.535426' WHERE "commontator_threads"."id" = 2 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 3  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:22:34.604372', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 21:22:34.605431' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:22:34.607372' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:22:34.631921', "updated_at" = '2013-09-24 21:22:34.632883' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:22:34.644237' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:22:34.674887', "updated_at" = '2013-09-24 21:22:34.676144' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:22:34.684476', "updated_at" = '2013-09-24 21:22:34.685417' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:22:34.689024' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:22:34.690606', "updated_at" = '2013-09-24 21:22:34.691521' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:22:34.694608' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:22:34.742963', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 21:22:34.744284' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:22:34.747834' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:22:34.750362', "updated_at" = '2013-09-24 21:22:34.751525' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:22:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (3.0ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 1 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (13.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (4.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]] SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:26:54.444427' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:26:54.463345' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "body" = 'Something else', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:26:54.472216' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 5ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:26:54.515580', "updated_at" = '2013-09-24 21:26:54.517064' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:26:54.557398', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:26:54.558538' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:26:54.568702' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 26ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:26:54.597068', "editor_id" = 3, "updated_at" = '2013-09-24 21:26:54.598493' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 21:26:54.606804' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:26:54.607409', "updated_at" = '2013-09-24 21:26:54.608504' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "editor_id" = 2, "editor_type" = 'DummyUser', "body" = 'Something else', "updated_at" = '2013-09-24 21:26:54.626284' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.7ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:26:54.734484', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:26:54.735924' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:26:54.742281' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:26:54.746113', "editor_id" = 3, "updated_at" = '2013-09-24 21:26:54.747556' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 2, "updated_at" = '2013-09-24 21:26:54.750840' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:26:54.754559', "editor_id" = 3, "updated_at" = '2013-09-24 21:26:54.755981' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 21:26:54.784421' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:26:54.801954', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:26:54.803477' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:26:54.813646' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 41ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 21:26:54.885149' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 21:26:54.894216' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "vote_scope", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["vote_scope", nil], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 'f', "updated_at" = '2013-09-24 21:26:55.033438' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "votes" SET "vote_flag" = 't', "updated_at" = '2013-09-24 21:26:55.043478' WHERE "votes"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment'  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = 1 AND "votes"."votable_type" = 'Commontator::Comment' AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.7ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "And this too"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 1.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:26:55.153892', "editor_id" = 2, "editor_type" = 'DummyUser', "updated_at" = '2013-09-24 21:26:55.155061' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "updated_at" = '2013-09-24 21:26:55.161395' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:26:55.165907', "updated_at" = '2013-09-24 21:26:55.167021' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 21:26:55.171450' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = '2013-09-24 21:26:55.172990', "editor_id" = 2, "updated_at" = '2013-09-24 21:26:55.174130' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = NULL, "editor_id" = 3, "updated_at" = '2013-09-24 21:26:55.178656' WHERE "commontator_comments"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 ORDER BY "commontator_comments"."id" DESC LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (5.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 21:26:55.309486' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 21:26:55.310279' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (4.6ms) Sent mail to (8ms) Date: Tue, 24 Sep 2013 16:26:55 -0500 From: no-reply@example.com Message-ID: <5242039f7e03d_6aebf9a7e020994@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 21:26:55.539122' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 1, "updated_at" = '2013-09-24 21:26:55.540036' WHERE "commontator_subscriptions"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) UPDATE "commontator_subscriptions" SET "unread" = 2, "updated_at" = '2013-09-24 21:26:55.540903' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = 0, "updated_at" = '2013-09-24 21:26:55.544272' WHERE "commontator_subscriptions"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:26:55.551203', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 21:26:55.552328' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:26:55.554035' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = NULL, "commontable_type" = NULL, "closed_at" = '2013-09-24 21:26:55.623336', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 21:26:55.623682' WHERE "commontator_threads"."id" = 2 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 3  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "cached_votes_down", "cached_votes_total", "cached_votes_up", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something else"], ["cached_votes_down", 0], ["cached_votes_total", 0], ["cached_votes_up", 0], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", nil], ["editor_id", nil], ["editor_type", nil], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = 2  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 0], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = 2 DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 2 LIMIT 1 DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 3 LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:26:55.669827', "updated_at" = '2013-09-24 21:26:55.670788' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:26:55.680659' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:26:55.696763', "updated_at" = '2013-09-24 21:26:55.698050' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:26:55.706567', "updated_at" = '2013-09-24 21:26:55.726275' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:26:55.730513' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:26:55.732222', "updated_at" = '2013-09-24 21:26:55.733177' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:26:55.736337' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:26:55.745690', "closer_id" = 2, "closer_type" = 'DummyUser', "updated_at" = '2013-09-24 21:26:55.746864' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = NULL, "updated_at" = '2013-09-24 21:26:55.750209' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1  (0.1ms) UPDATE "commontator_threads" SET "closed_at" = '2013-09-24 21:26:55.752614', "updated_at" = '2013-09-24 21:26:55.753855' WHERE "commontator_threads"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel' LIMIT 1 DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."thread_id" = 2 LIMIT 1 Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = 2 LIMIT 1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("closed_at", "closer_id", "closer_type", "commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["closed_at", nil], ["closer_id", nil], ["closer_type", nil], ["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 21:26:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (28.5ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text DEFAULT '' NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (5.6ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.5ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (6.2ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.3ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.2ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (4.7ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (4.9ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.1ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (4.9ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (13.4ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text DEFAULT '' NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (5.0ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.0ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.4ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.1ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.3ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.2ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (5.3ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.1ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.4ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (11.8ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.7ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.3ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.4ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (6.2ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.9ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.9ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.5ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.3ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.9ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.1ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (4.8ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (4.6ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (4.6ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.2ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (3.9ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (4.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (4.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (3.7ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (3.7ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (13.9ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.7ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.2ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.4ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.2ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.6ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.6ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.0ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (4.4ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (4.6ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (4.9ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (4.5ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.0ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (4.5ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (4.9ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.1ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.0ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (5.8ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (13.1ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.7ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.2ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.5ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.4ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.3ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.6ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.8ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (4.6ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (4.6ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (4.6ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.1ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (4.8ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (4.9ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.0ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.3ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.8ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.7ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.1ms) begin transaction SQL (2.7ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (11.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 400 Bad Request in 3ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 400 Bad Request in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 400 Bad Request in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (21.0ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 8ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 400 Bad Request in 3ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 20ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (24.0ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 33ms (ActiveRecord: 1.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 12ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 11ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 11ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 11ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 53ms (ActiveRecord: 1.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 12ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 11ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 400 Bad Request in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:35:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 400 Bad Request in 2ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (28.6ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont create unless authorized -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must create if authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0003_wont destroy unless authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (3.6ms) Sent mail to (7.5ms) Date: Tue, 24 Sep 2013 17:35:28 -0500 From: no-reply@example.com Message-ID: <524213b037a07_6eeec487e016460@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 25ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (27.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (5.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.5ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (5.2ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.6ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (5.2ms) commit transaction Commontator::Comment Load (0.3ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 3]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (5.5ms) commit transaction Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.5ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (5.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.5ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (5.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (6.0ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 9]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 10]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (5.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (5.5ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 11 AND "commontator_comments"."thread_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["creator_id", 11], ["creator_type", "DummyUser"], ["thread_id", 6], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (5.3ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 6]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 6]] SQL (0.4ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 6 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["closer_id", 11], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 6]]  (6.0ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 6]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 6]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 6], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 7]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (5.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (6.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (5.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 8]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 12]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]] SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 7 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (3.9ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."id" != 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.5ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 10 [["closed_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00], ["closer_id", 15], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."id" != 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.4ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 10 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 22:35:28 UTC +00:00]]  (4.2ms) commit transaction  (13.2ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (4.9ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.3ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.4ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.6ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.2ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.5ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.8ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.1ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.3ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.3ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.7ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.2ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (6.0ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.8ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.3ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.5ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (12.5ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (4.6ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.8ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 400 Bad Request in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 400 Bad Request in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 400 Bad Request in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 5ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 400 Bad Request in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (15.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.6ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 23ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 400 Bad Request in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 400 Bad Request in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (4.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont create unless authorized -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must create if authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0003_wont destroy unless authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (1.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to (3.4ms) Date: Tue, 24 Sep 2013 17:37:28 -0500 From: no-reply@example.com Message-ID: <52421428e06fc_7a7b995e804898f@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]]  (24.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.5ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]]  (6.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]]  (5.7ms) commit transaction Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]]  (5.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]]  (5.2ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 3]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]]  (3.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]]  (5.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 8]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 9]] SQL (0.4ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 5 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."id" != 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 5 [["closed_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["closer_id", 10], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."id" != 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 5 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]]  (3.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 12]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]]  (5.2ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 14 AND "commontator_comments"."thread_id" = 8) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["creator_id", 14], ["creator_type", "DummyUser"], ["thread_id", 8], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]]  (5.1ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 8]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 8]] SQL (1.2ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 8 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["closer_id", 14], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 8]]  (5.6ms) commit transaction Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 8]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 8]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 8], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 9]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]]  (4.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]]  (5.6ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 15 AND "commontator_comments"."thread_id" = 10) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["creator_id", 15], ["creator_type", "DummyUser"], ["thread_id", 10], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]]  (5.2ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 15 AND "commontator_comments"."thread_id" = 10) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00], ["creator_id", 15], ["creator_type", "DummyUser"], ["thread_id", 10], ["updated_at", Tue, 24 Sep 2013 22:37:29 UTC +00:00]]  (5.4ms) commit transaction Commontator::Comment Load (0.3ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 10]]  (15.6ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.3ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.5ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.6ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.2ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.4ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.5ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.7ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.7ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.3ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.8ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.3ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.3ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.6ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.9ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.4ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (25.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (5.0ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (1.5ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 400 Bad Request in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 400 Bad Request in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 400 Bad Request in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 400 Bad Request in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (15.7ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (1.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 23ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.4ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 400 Bad Request in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 400 Bad Request in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (4.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont create unless authorized -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must create if authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0003_wont destroy unless authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (1.5ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:42:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.5ms) Sent mail to (3.4ms) Date: Tue, 24 Sep 2013 17:42:34 -0500 From: no-reply@example.com Message-ID: <5242155a6b81_7b4d63fe8418396@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (31.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (5.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (5.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 3]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 5]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (4.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (3.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 5]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 5]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 8]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."id" != 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 6 [["closed_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["closer_id", 9], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (3.7ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."id" != 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 6 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (3.8ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (4.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 7]]  (4.2ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (5.1ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 14 AND "commontator_comments"."thread_id" = 8) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["creator_id", 14], ["creator_type", "DummyUser"], ["thread_id", 8], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (5.4ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 14 AND "commontator_comments"."thread_id" = 8) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["creator_id", 14], ["creator_type", "DummyUser"], ["thread_id", 8], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (5.5ms) commit transaction Commontator::Comment Load (1.6ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 8]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (4.8ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (5.3ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 15 AND "commontator_comments"."thread_id" = 9) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["creator_id", 15], ["creator_type", "DummyUser"], ["thread_id", 9], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]]  (5.4ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 9]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 9]] SQL (0.4ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 9 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["closer_id", 15], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:42:34 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]]  (5.6ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 9]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 9]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 9], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 10]]  (12.2ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.4ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.2ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (4.9ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.3ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.5ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.2ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.8ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.1ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.3ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.7ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.7ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.7ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.4ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.3ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.7ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.9ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.3ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (3.5ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (3.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (3.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (3.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (11.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (3.5ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (1.5ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 400 Bad Request in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 400 Bad Request in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 400 Bad Request in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 5ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 400 Bad Request in 3ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (1.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 24ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.5ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 400 Bad Request in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 400 Bad Request in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (4.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont create unless authorized -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must create if authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0003_wont destroy unless authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (1.5ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.5ms) Sent mail to (3.5ms) Date: Tue, 24 Sep 2013 17:48:55 -0500 From: no-reply@example.com Message-ID: <524216d7127b8_7b80127de801476e@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (15.7ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (26.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (5.0ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 2]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] SQL (0.4ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (5.4ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 2]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 3]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (5.2ms) commit transaction Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.3ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 5) LIMIT 1 SQL (0.5ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["thread_id", 5], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (5.2ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 5) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["thread_id", 5], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (5.4ms) commit transaction Commontator::Comment Load (0.3ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 5]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (4.6ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 6]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (5.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 8]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 9]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 5 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."id" != 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 8 [["closed_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["closer_id", 10], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."id" != 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 8 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (1.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (5.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 7]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:48:55 UTC +00:00]]  (5.4ms) commit transaction  (12.0ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.5ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.4ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.6ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.8ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.3ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.7ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (6.2ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.2ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.2ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.5ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.9ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.6ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.0ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.8ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.9ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.2ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (13.3ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (5.4ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (1.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 400 Bad Request in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 400 Bad Request in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 400 Bad Request in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 400 Bad Request in 18ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.7ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 23ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 17ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 30ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 400 Bad Request in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 400 Bad Request in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (20.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont create unless authorized -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must create if authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (1.2ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0003_wont destroy unless authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to (3.3ms) Date: Tue, 24 Sep 2013 17:54:45 -0500 From: no-reply@example.com Message-ID: <52421835d5031_7bcf93fe7c87631@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 19ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:45 UTC +00:00]]  (29.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00]]  (4.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00]]  (4.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00]]  (4.8ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 3]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 3]] SQL (0.3ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 3 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00], ["closer_id", 3], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 3]]  (4.8ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 3]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 3]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 3], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 4]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00]]  (3.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 5]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 6 AND "commontator_comments"."thread_id" = 6) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00], ["creator_id", 6], ["creator_type", "DummyUser"], ["thread_id", 6], ["updated_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00]]  (5.4ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 6 AND "commontator_comments"."thread_id" = 6) LIMIT 1 SQL (0.5ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00], ["creator_id", 6], ["creator_type", "DummyUser"], ["thread_id", 6], ["updated_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00]]  (5.5ms) commit transaction Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 6]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00]]  (3.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00]]  (5.3ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00]]  (3.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 8]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00]]  (5.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00]]  (5.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 8]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 9]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 10]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 5 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00]]  (5.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00]]  (32.1ms) commit transaction  (1.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00]]  (4.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 7]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00]]  (3.8ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00]]  (4.9ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."id" != 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 10 [["closed_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00], ["closer_id", 15], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00]]  (3.9ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."id" != 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 10 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 22:54:46 UTC +00:00]]  (4.5ms) commit transaction  (12.4ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.3ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (6.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.5ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.5ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.3ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.7ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.8ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.8ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.6ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.6ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (6.1ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (6.0ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.3ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.7ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.8ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (6.4ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.7ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.6ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.5ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (14.0ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.0ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.4ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.1ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.2ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.3ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.6ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.3ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.4ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.3ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.7ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (6.3ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.1ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.5ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.3ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.7ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.3ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (11.2ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (13.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (4.3ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (19.5ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 400 Bad Request in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 400 Bad Request in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 400 Bad Request in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 5ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 400 Bad Request in 3ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 26ms (ActiveRecord: 0.6ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 23ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.2ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 400 Bad Request in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 400 Bad Request in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (4.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont create unless authorized -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must create if authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0003_wont destroy unless authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.7ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to (3.3ms) Date: Tue, 24 Sep 2013 18:11:14 -0500 From: no-reply@example.com Message-ID: <52421c121e1ee_7d32d61e74948a@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (15.8ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 19ms (ActiveRecord: 16.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (30.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (4.5ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 2]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] SQL (0.4ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (4.9ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 3]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (5.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 5) LIMIT 1 SQL (0.5ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["thread_id", 5], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 5) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["thread_id", 5], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (5.3ms) commit transaction Commontator::Comment Load (0.3ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 5]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 6]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (11.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (3.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."id" != 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 8 [["closed_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["closer_id", 12], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."id" != 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 8 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (24.4ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (7.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 15) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00], ["subscriber_id", 15], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 10]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 15]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (3.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 7 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 23:11:14 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (11.5ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (4.2ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (4.6ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (4.3ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (4.0ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (4.1ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (4.0ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (4.0ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (3.9ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (4.2ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (3.9ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (4.0ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (4.8ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (4.4ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (4.1ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (4.3ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (4.5ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (3.9ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (3.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (4.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (3.6ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (3.4ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (3.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (3.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (13.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (4.9ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (19.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 500 Internal Server Error in 3ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 500 Internal Server Error in 3ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.4ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 39ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.2ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:47 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (4.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont create unless authorized -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must create if authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0003_wont destroy unless authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to (3.3ms) Date: Tue, 24 Sep 2013 18:13:48 -0500 From: no-reply@example.com Message-ID: <52421cac426a2_7d5e8b9e808324a@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (1.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 25ms (ActiveRecord: 1.4ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (27.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (4.1ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (4.0ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 2]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] SQL (0.3ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (4.8ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 3]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (3.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (3.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (4.1ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["thread_id", 5], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["thread_id", 5], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (4.6ms) commit transaction Commontator::Comment Load (0.3ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 5]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (3.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."id" != 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 6 [["closed_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["closer_id", 6], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."id" != 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 6 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 7]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 8]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (3.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (3.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (3.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (3.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (3.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (3.2ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (3.5ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 10]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 11]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (3.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 5 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (3.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (3.3ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (3.4ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (3.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (5.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 7]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:13:48 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (11.4ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (4.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (4.6ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.2ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (4.7ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.5ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.1ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.5ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (4.9ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.1ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.3ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.8ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (6.1ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (4.9ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.0ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.3ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.5ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (4.5ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (4.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (14.4ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (5.8ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 500 Internal Server Error in 3ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 500 Internal Server Error in 3ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.4ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 39ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.3ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (4.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont create unless authorized -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must create if authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0003_wont destroy unless authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to (3.3ms) Date: Tue, 24 Sep 2013 18:14:13 -0500 From: no-reply@example.com Message-ID: <52421cc5de9bf_7d698fde78627@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]]  (2.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 30ms (ActiveRecord: 2.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]]  (25.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]]  (5.1ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]]  (4.6ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 2]]  (0.0ms) begin transaction Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] SQL (0.2ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (4.8ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 3]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]]  (4.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]]  (6.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]]  (4.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]]  (4.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]]  (5.4ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."id" != 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 6 [["closed_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["closer_id", 6], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]]  (3.8ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."id" != 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 6 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]]  (5.9ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 7 AND "commontator_comments"."thread_id" = 7) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["creator_id", 7], ["creator_type", "DummyUser"], ["thread_id", 7], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]]  (5.7ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 7 AND "commontator_comments"."thread_id" = 7) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["creator_id", 7], ["creator_type", "DummyUser"], ["thread_id", 7], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]]  (5.7ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 7]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]]  (5.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]]  (5.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 8]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 8]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 9]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]]  (5.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 9]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 10]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 9]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 11]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]]  (5.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 7]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:14 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (13.6ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.2ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.4ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.2ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.5ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.2ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.4ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.5ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.4ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.3ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.6ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (6.0ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.6ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.6ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.7ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.7ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (4.8ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (4.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (4.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (10.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (4.8ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 400 Bad Request in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 400 Bad Request in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 400 Bad Request in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 400 Bad Request in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 26ms (ActiveRecord: 0.6ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 23ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 400 Bad Request in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 400 Bad Request in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (4.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont create unless authorized -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must create if authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0003_wont destroy unless authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (1.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to (3.3ms) Date: Tue, 24 Sep 2013 18:14:30 -0500 From: no-reply@example.com Message-ID: <52421cd62668b_7d73833e84657aa@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 19ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (23.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (5.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (5.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 3]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (5.5ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["thread_id", 4], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (5.3ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 4]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 4]] SQL (0.4ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 4 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["closer_id", 5], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]]  (5.2ms) commit transaction Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 4]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 4], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 5]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 3 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (5.2ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 8 AND "commontator_comments"."thread_id" = 7) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["creator_id", 8], ["creator_type", "DummyUser"], ["thread_id", 7], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (5.5ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 8 AND "commontator_comments"."thread_id" = 7) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["creator_id", 8], ["creator_type", "DummyUser"], ["thread_id", 7], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (5.8ms) commit transaction Commontator::Comment Load (0.3ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 7]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (5.6ms) commit transaction Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 8]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 9]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 8]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 10]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (4.8ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (31.0ms) commit transaction  (1.4ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 7]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."id" != 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 10 [["closed_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00], ["closer_id", 15], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."id" != 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 10 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:14:30 UTC +00:00]]  (4.3ms) commit transaction  (12.3ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (4.6ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.4ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.3ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.4ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.1ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.9ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (6.0ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.1ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.5ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.3ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.1ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.1ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (4.8ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.5ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.6ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.0ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (4.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (11.3ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 400 Bad Request in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 400 Bad Request in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 400 Bad Request in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 400 Bad Request in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (19.5ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.2ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 26ms (ActiveRecord: 20.0ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 23ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:36 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.2ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 400 Bad Request in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 400 Bad Request in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (4.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont create unless authorized -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must create if authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0003_wont destroy unless authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (1.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to (3.2ms) Date: Tue, 24 Sep 2013 18:14:37 -0500 From: no-reply@example.com Message-ID: <52421cdd46b58_7d7b10ede804671b@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (24.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (5.5ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (4.7ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (5.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (5.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 8]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 9]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (5.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (5.4ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 10 AND "commontator_comments"."thread_id" = 6) LIMIT 1 SQL (0.5ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["creator_id", 10], ["creator_type", "DummyUser"], ["thread_id", 6], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (5.4ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 10 AND "commontator_comments"."thread_id" = 6) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["creator_id", 10], ["creator_type", "DummyUser"], ["thread_id", 6], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (5.5ms) commit transaction Commontator::Comment Load (0.3ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 6]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (3.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (5.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 11]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 12]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 8]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 7 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (3.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (3.5ms) commit transaction Commontator::Subscription Load (25.4ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.9ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (4.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (4.9ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 15 AND "commontator_comments"."thread_id" = 9) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["creator_id", 15], ["creator_type", "DummyUser"], ["thread_id", 9], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]]  (5.1ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 9]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 9]] SQL (0.4ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 9 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["closer_id", 15], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:14:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]]  (5.4ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 9]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 9]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 9], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 10]]  (13.6ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (4.9ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.0ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.2ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.3ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.2ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.4ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.5ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.1ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.2ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.4ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.7ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (6.4ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.7ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.5ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (6.1ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (6.0ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.1ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (2.9ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:24 UTC +00:00]]  (13.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:24 UTC +00:00]]  (5.5ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (19.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 5ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1  (14.9ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 18ms  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 23ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (15.3ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 17ms (ActiveRecord: 15.4ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 30ms (ActiveRecord: 0.7ms)  (0.2ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (19.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont create unless authorized -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must create if authorized -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0003_wont destroy unless authorized ------------------------------------------------------------------------------  (0.6ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to (3.3ms) Date: Tue, 24 Sep 2013 18:15:25 -0500 From: no-reply@example.com Message-ID: <52421d0dafe13_7d8644de7857e3@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (23.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (5.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (4.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (4.6ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (4.8ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (4.6ms) commit transaction Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 3]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (4.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (4.8ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 5]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 4]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 6]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (3.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (4.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:25 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (4.2ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:26 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:26 UTC +00:00]]  (4.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:26 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 7) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:15:26 UTC +00:00], ["creator_id", 12], ["creator_type", "DummyUser"], ["thread_id", 7], ["updated_at", Tue, 24 Sep 2013 23:15:26 UTC +00:00]]  (4.8ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 7]]  (0.0ms) begin transaction Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 7]] SQL (0.2ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 7 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Tue, 24 Sep 2013 23:15:26 UTC +00:00], ["closer_id", 12], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:15:26 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:26 UTC +00:00]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 7]]  (4.5ms) commit transaction Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 7]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 7]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 7], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 8]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:26 UTC +00:00]]  (3.4ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:26 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:26 UTC +00:00]]  (5.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:15:26 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Tue, 24 Sep 2013 23:15:26 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:26 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.9ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:15:26 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Tue, 24 Sep 2013 23:15:26 UTC +00:00]]  (5.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:15:26 UTC +00:00]]  (4.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 7 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:15:26 UTC +00:00]]  (4.2ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 23:15:26 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 23:15:26 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:26 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:15:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:26 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:15:26 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:15:26 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."id" != 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 10 [["closed_at", Tue, 24 Sep 2013 23:15:26 UTC +00:00], ["closer_id", 15], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:15:26 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."id" != 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 10 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:15:26 UTC +00:00]]  (4.0ms) commit transaction  (13.3ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.3ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.6ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.5ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.6ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (4.4ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.6ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.7ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.3ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.7ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (6.2ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.5ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.1ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.5ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.8ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.2ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.9ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (10.7ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (4.8ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 5ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 18ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 23ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (15.3ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 17ms (ActiveRecord: 15.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 29ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (19.5ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont create unless authorized -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must create if authorized -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0003_wont destroy unless authorized ------------------------------------------------------------------------------  (0.7ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to (3.2ms) Date: Tue, 24 Sep 2013 18:17:08 -0500 From: no-reply@example.com Message-ID: <52421d744ef22_7d9cdd5e781763b@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (26.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (5.5ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (5.2ms) commit transaction Commontator::Comment Load (0.3ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (5.4ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 3]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 3]] SQL (0.5ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 3 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["closer_id", 3], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 3]]  (5.0ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 3]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 3]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 3], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 4]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (5.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 5]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (3.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 7]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 8]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (4.2ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 3 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (3.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (3.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.9ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (8.6ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."id" != 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 10 [["closed_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00], ["closer_id", 15], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (4.1ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."id" != 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 10 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:17:08 UTC +00:00]]  (4.3ms) commit transaction  (12.7ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (4.9ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.0ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.2ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.6ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.2ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.5ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.7ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.2ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.2ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.5ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.7ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (6.5ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.2ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (6.0ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (6.1ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.6ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (15.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (5.3ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (26.9ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "editor_id" = ?, "editor_type" = ?, "body" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["editor_id", 2], ["editor_type", "DummyUser"], ["body", "Something else"], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (1.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:17:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.8ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 29ms (ActiveRecord: 1.5ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (4.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (22.9ms) RELEASE SAVEPOINT active_record_1  (1.3ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont create unless authorized -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must create if authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0003_wont destroy unless authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to (3.2ms) Date: Tue, 24 Sep 2013 18:17:21 -0500 From: no-reply@example.com Message-ID: <52421d817963e_7da4c1de7822438@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 18ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (31.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (3.6ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (5.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (3.6ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (1.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (6.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (5.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 8]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (5.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (4.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (5.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (5.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 10]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 11]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 7) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["creator_id", 12], ["creator_type", "DummyUser"], ["thread_id", 7], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (5.3ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 7) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["creator_id", 12], ["creator_type", "DummyUser"], ["thread_id", 7], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (5.0ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 7]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 13 AND "commontator_comments"."thread_id" = 8) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["creator_id", 13], ["creator_type", "DummyUser"], ["thread_id", 8], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (5.6ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 8]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 8]] SQL (0.3ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 8 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["closer_id", 13], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 8]]  (4.4ms) commit transaction Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 8]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 8]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 8], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 9]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (4.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (5.2ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (4.9ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 15) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00], ["subscriber_id", 15], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 10]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 15]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 7 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (3.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 23:17:21 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (14.7ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.4ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.7ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.4ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.3ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.4ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.8ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.9ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.8ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.4ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.6ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (6.2ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.7ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.9ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.8ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (6.2ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.4ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (5.1ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.5ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (5.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.6ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:08 UTC +00:00]]  (9.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:08 UTC +00:00]]  (4.0ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:08 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:08 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:20:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:20:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:08 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:08 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:20:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 23:20:08 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:20:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:08 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (19.8ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "editor_id" = ?, "editor_type" = ?, "body" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["editor_id", 2], ["editor_type", "DummyUser"], ["body", "Something else"], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (1.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.9ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 30ms (ActiveRecord: 1.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (4.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (21.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont create unless authorized -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must create if authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0003_wont destroy unless authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to (3.3ms) Date: Tue, 24 Sep 2013 18:20:09 -0500 From: no-reply@example.com Message-ID: <52421e29b03f6_7db1713e78205df@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 17ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (30.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (5.7ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (5.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.9ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (6.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 3]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 3]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (5.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (5.2ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (5.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:09 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (5.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00]]  (5.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 5]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 9]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 10]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00]]  (3.9ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00]]  (4.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00]]  (3.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 7) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00], ["creator_id", 12], ["creator_type", "DummyUser"], ["thread_id", 7], ["updated_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00]]  (4.1ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 7) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00], ["creator_id", 12], ["creator_type", "DummyUser"], ["thread_id", 7], ["updated_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00]]  (3.7ms) commit transaction Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 7]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00]]  (3.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00]]  (4.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 8]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 7 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00]]  (4.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00]]  (4.4ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 15 AND "commontator_comments"."thread_id" = 9) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00], ["creator_id", 15], ["creator_type", "DummyUser"], ["thread_id", 9], ["updated_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00]]  (4.8ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 9]]  (0.0ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 9]] SQL (0.2ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 9 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00], ["closer_id", 15], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:20:10 UTC +00:00]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]]  (4.3ms) commit transaction Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 9]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 9]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 9], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 10]]  (13.7ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.2ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (4.9ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.2ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.1ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.2ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.5ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (6.3ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.3ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.2ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (6.0ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.9ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.1ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.1ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.9ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (4.6ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (4.0ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (4.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (3.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.0ms) SELECT version FROM "schema_migrations"  (3.5ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (3.7ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (13.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (5.3ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "editor_id" = ?, "editor_type" = ?, "body" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["editor_id", 2], ["editor_type", "DummyUser"], ["body", "Something else"], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.4ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (1.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 29ms (ActiveRecord: 1.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (4.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.3ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont create unless authorized -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must create if authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0003_wont destroy unless authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to (3.3ms) Date: Tue, 24 Sep 2013 18:21:36 -0500 From: no-reply@example.com Message-ID: <52421e80dd8f7_7dcf72fe8454571@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 18ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:21:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]]  (26.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]]  (5.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]]  (12.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]]  (5.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (1.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (6.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 6 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["creator_id", 6], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]]  (5.7ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 6 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["creator_id", 6], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]]  (5.5ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 3]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]]  (5.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 8]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]]  (4.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 3 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]]  (4.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]]  (6.0ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]]  (5.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 9]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 10]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]]  (5.2ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 11 AND "commontator_comments"."thread_id" = 6) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["creator_id", 11], ["creator_type", "DummyUser"], ["thread_id", 6], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]]  (5.8ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 6]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 6]] SQL (0.4ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 6 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["closer_id", 11], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 6]]  (5.4ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 6]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 6]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 6], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 7]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."id" != 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 8 [["closed_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["closer_id", 12], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."id" != 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 8 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]]  (3.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]]  (3.8ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]]  (3.4ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 15) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00], ["subscriber_id", 15], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Tue, 24 Sep 2013 23:21:37 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 10]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 15]]  (15.2ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.0ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.3ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.2ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.4ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.3ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.6ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.1ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.2ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.8ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.7ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.7ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (4.2ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (4.2ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (4.5ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.0ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.1ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (11.8ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (5.6ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "editor_id" = ?, "editor_type" = ?, "body" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["editor_id", 2], ["editor_type", "DummyUser"], ["body", "Something else"], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (1.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (1.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 30ms (ActiveRecord: 1.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:28:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (4.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (20.7ms) RELEASE SAVEPOINT active_record_1  (1.3ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont create unless authorized -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must create if authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0003_wont destroy unless authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to (3.2ms) Date: Tue, 24 Sep 2013 18:29:00 -0500 From: no-reply@example.com Message-ID: <5242203c2c421_7e0a89de744739d@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 18ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (33.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (3.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (3.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (6.3ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (4.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (3.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 3]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 5]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 6 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["creator_id", 6], ["creator_type", "DummyUser"], ["thread_id", 4], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (5.6ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 6 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["creator_id", 6], ["creator_type", "DummyUser"], ["thread_id", 4], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (4.1ms) commit transaction Commontator::Comment Load (0.3ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 4]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (5.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (4.4ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."id" != 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 7 [["closed_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["closer_id", 12], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."id" != 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 7 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (4.4ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (4.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (3.9ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 13 AND "commontator_comments"."thread_id" = 8) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["creator_id", 13], ["creator_type", "DummyUser"], ["thread_id", 8], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (5.4ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 8]]  (0.0ms) begin transaction Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 8]] SQL (0.1ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 8 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["closer_id", 13], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 8]]  (5.0ms) commit transaction Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 8]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 8]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 8], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 9]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (4.8ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 15) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00], ["subscriber_id", 15], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 10]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 15]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (3.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 7 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (3.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 23:29:00 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (13.6ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.2ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.5ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.3ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.4ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.4ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.6ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.3ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.8ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.3ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.7ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.7ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.5ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.9ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.9ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (6.4ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.3ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (11.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (4.9ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "editor_id" = ?, "editor_type" = ?, "body" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["editor_id", 2], ["editor_type", "DummyUser"], ["body", "Something else"], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.4ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:29:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (1.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 29ms (ActiveRecord: 1.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (4.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.3ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont create unless authorized -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must create if authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0003_wont destroy unless authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to (3.3ms) Date: Tue, 24 Sep 2013 18:30:00 -0500 From: no-reply@example.com Message-ID: <524220786d953_7e1e4afe84774c8@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (27.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (5.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 8 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["creator_id", 8], ["creator_type", "DummyUser"], ["thread_id", 4], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (5.3ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 4]]  (0.0ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 4]] SQL (0.4ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 4 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["closer_id", 8], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]]  (4.1ms) commit transaction Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 4]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 4], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 5]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."id" != 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 6 [["closed_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["closer_id", 9], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (12.5ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."id" != 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 6 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (5.5ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (5.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (5.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 7]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 10]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 7]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 11]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (3.9ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 8]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 12]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (3.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 7 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (11.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (3.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (5.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (4.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (4.6ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 15 AND "commontator_comments"."thread_id" = 10) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["creator_id", 15], ["creator_type", "DummyUser"], ["thread_id", 10], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (5.0ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 15 AND "commontator_comments"."thread_id" = 10) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00], ["creator_id", 15], ["creator_type", "DummyUser"], ["thread_id", 10], ["updated_at", Tue, 24 Sep 2013 23:30:00 UTC +00:00]]  (5.1ms) commit transaction Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 10]]  (13.7ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.0ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (4.9ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.1ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.5ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.6ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (6.1ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.2ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.3ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.8ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (6.0ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.3ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.9ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.9ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.2ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (12.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (4.7ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "editor_id" = ?, "editor_type" = ?, "body" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["editor_id", 2], ["editor_type", "DummyUser"], ["body", "Something else"], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (1.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (1.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 29ms (ActiveRecord: 1.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (4.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (1.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont create unless authorized -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must create if authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0003_wont destroy unless authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to (3.3ms) Date: Tue, 24 Sep 2013 18:32:36 -0500 From: no-reply@example.com Message-ID: <52422114128e1_7e34961e78125a5@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 17ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (31.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (4.7ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (3.5ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (3.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (5.4ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.3ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (5.8ms) commit transaction Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 3]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (3.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (5.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 5]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.5ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 3 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (3.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 8]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 9]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (4.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (9.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 7]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 15 AND "commontator_comments"."thread_id" = 9) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["creator_id", 15], ["creator_type", "DummyUser"], ["thread_id", 9], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]]  (5.2ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 9]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 9]] SQL (0.2ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 9 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["closer_id", 15], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:32:36 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]]  (4.1ms) commit transaction Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 9]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 9]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 9], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 10]]  (11.6ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (4.4ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.0ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.4ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.3ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.4ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.4ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.6ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.2ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.3ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.4ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.6ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (6.3ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.2ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.1ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.7ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (6.5ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.5ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (12.4ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "editor_id" = ?, "editor_type" = ?, "body" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["editor_id", 2], ["editor_type", "DummyUser"], ["body", "Something else"], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (1.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (1.3ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 32ms (ActiveRecord: 2.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (4.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (1.6ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont create unless authorized -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must create if authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0003_wont destroy unless authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to (3.4ms) Date: Tue, 24 Sep 2013 18:33:28 -0500 From: no-reply@example.com Message-ID: <524221484f15_7e3e6f1e7c643e9@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 18ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (23.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (4.1ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (3.8ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (3.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (3.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (3.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (1.2ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 3]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (3.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (3.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (3.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (3.5ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (3.7ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["thread_id", 4], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (4.2ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["thread_id", 4], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (3.7ms) commit transaction Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 4]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (3.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (3.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 5]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 6]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 5]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (3.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (3.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (3.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (3.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (3.5ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (3.6ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (3.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (3.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 8]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (3.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (3.7ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 15 AND "commontator_comments"."thread_id" = 9) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["creator_id", 15], ["creator_type", "DummyUser"], ["thread_id", 9], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]]  (3.4ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 9]]  (0.0ms) begin transaction Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 9]] SQL (0.2ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 9 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["closer_id", 15], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:33:28 UTC +00:00]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]]  (4.1ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 9]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 9]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 9], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 10]]  (13.5ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (4.9ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.6ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.8ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.3ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.3ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.4ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.8ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.3ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.6ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.4ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.8ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.6ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.2ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (6.0ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.8ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (6.3ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.6ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.7ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.7ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (12.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "editor_id" = ?, "editor_type" = ?, "body" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["editor_id", 2], ["editor_type", "DummyUser"], ["body", "Something else"], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (1.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:38:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (1.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 30ms (ActiveRecord: 1.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (4.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (1.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont create unless authorized -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must create if authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0003_wont destroy unless authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.5ms) Sent mail to (3.2ms) Date: Tue, 24 Sep 2013 18:38:39 -0500 From: no-reply@example.com Message-ID: <5242227f68d34_7e5f52be80767af@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 17ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (32.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (4.3ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (4.1ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (6.1ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 3]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 4]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 5]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (5.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (3.9ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (3.5ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 7 AND "commontator_comments"."thread_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["creator_id", 7], ["creator_type", "DummyUser"], ["thread_id", 6], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (3.8ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 6]]  (0.0ms) begin transaction Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 6]] SQL (0.2ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 6 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["closer_id", 7], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 6]]  (4.0ms) commit transaction Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 6]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 6]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 6], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 7]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (3.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (3.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 8]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 8]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 9]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (3.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.5ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (5.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 15) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00], ["subscriber_id", 15], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 10]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 15]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (5.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 7 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (4.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 23:38:39 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (11.7ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.0ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (4.8ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (4.9ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (4.7ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (4.7ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.8ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (6.0ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.5ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.2ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (4.0ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (4.3ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (4.0ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.9ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (4.9ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.7ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (4.9ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (4.4ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (4.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (4.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (3.5ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]]  (13.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]]  (5.2ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "editor_id" = ?, "editor_type" = ?, "body" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["editor_id", 2], ["editor_type", "DummyUser"], ["body", "Something else"], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (1.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (1.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 29ms (ActiveRecord: 1.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (4.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (1.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont create unless authorized -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must create if authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0003_wont destroy unless authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to (3.2ms) Date: Tue, 24 Sep 2013 18:38:59 -0500 From: no-reply@example.com Message-ID: <5242229391e65_7e68cc5e84815c1@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 18ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (29.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (6.0ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (6.4ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (1.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (6.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 3]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (5.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 5]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 6]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (5.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (5.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:38:59 UTC +00:00]]  (4.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:00 UTC +00:00]]  (5.9ms) commit transaction Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.5ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:00 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Tue, 24 Sep 2013 23:39:00 UTC +00:00]]  (5.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:00 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:00 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Tue, 24 Sep 2013 23:39:00 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 12]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:00 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:00 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."id" != 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 8 [["closed_at", Tue, 24 Sep 2013 23:39:00 UTC +00:00], ["closer_id", 14], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:39:00 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."id" != 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 8 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:39:00 UTC +00:00]]  (11.5ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:00 UTC +00:00]]  (3.5ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:00 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 15 AND "commontator_comments"."thread_id" = 9) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:00 UTC +00:00], ["creator_id", 15], ["creator_type", "DummyUser"], ["thread_id", 9], ["updated_at", Tue, 24 Sep 2013 23:39:00 UTC +00:00]]  (4.4ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 9]]  (0.0ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 9]] SQL (0.3ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 9 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Tue, 24 Sep 2013 23:39:00 UTC +00:00], ["closer_id", 15], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:39:00 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:00 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]]  (5.1ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 9]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 9]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 9], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 10]]  (13.8ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.6ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.4ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.3ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.3ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.4ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.9ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.8ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.5ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.4ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.5ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (6.3ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (6.4ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.3ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.3ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.7ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.8ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.8ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (11.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (5.5ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "editor_id" = ?, "editor_type" = ?, "body" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["editor_id", 2], ["editor_type", "DummyUser"], ["body", "Something else"], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (1.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (1.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 29ms (ActiveRecord: 1.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 23:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (4.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (21.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont create unless authorized -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must create if authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0003_wont destroy unless authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to (3.2ms) Date: Tue, 24 Sep 2013 18:39:17 -0500 From: no-reply@example.com Message-ID: <524222a53c79b_7e6f66de741000d8@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 18ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (27.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (4.9ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (5.0ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (5.2ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (6.6ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 3]]  (0.0ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 3]] SQL (0.2ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 3 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["closer_id", 3], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 3]]  (4.8ms) commit transaction Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 3]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 3]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 3], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 4]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (4.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (3.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (3.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 9]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 10]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (5.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 8]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 11]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 12]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 5 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (5.2ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."id" != 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 10 [["closed_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00], ["closer_id", 15], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."id" != 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 10 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:39:17 UTC +00:00]]  (4.6ms) commit transaction  (14.2ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.3ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.6ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (4.8ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (4.2ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (4.8ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.4ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.3ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (4.8ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (4.6ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.4ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.0ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (4.4ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (4.0ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (4.1ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (4.9ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.0ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (4.3ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (4.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (4.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (3.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (3.7ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (3.6ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (11.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "editor_id" = ?, "editor_type" = ?, "body" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["editor_id", 2], ["editor_type", "DummyUser"], ["body", "Something else"], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (1.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.2ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (1.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 30ms (ActiveRecord: 1.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (4.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (1.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont create unless authorized -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must create if authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0003_wont destroy unless authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to (3.3ms) Date: Tue, 24 Sep 2013 18:39:25 -0500 From: no-reply@example.com Message-ID: <524222ad13b36_7e76befe741323@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 18ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (30.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (1.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (6.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 8]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (4.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (3.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (3.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (4.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (3.2ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (3.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 6]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 10]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 11]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (3.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (3.7ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 7) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["creator_id", 12], ["creator_type", "DummyUser"], ["thread_id", 7], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (3.5ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 7) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["creator_id", 12], ["creator_type", "DummyUser"], ["thread_id", 7], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (4.1ms) commit transaction Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 7]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (4.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (3.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 8]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (3.4ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 7 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 15 AND "commontator_comments"."thread_id" = 9) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["creator_id", 15], ["creator_type", "DummyUser"], ["thread_id", 9], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]]  (5.2ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 9]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 9]] SQL (0.2ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 9 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["closer_id", 15], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:39:25 UTC +00:00]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]]  (3.7ms) commit transaction Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 9]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 9]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 9], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 10]]  (12.1ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (4.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.2ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.2ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.3ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.8ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.5ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.5ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.4ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.3ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (6.0ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.3ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (7.0ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.7ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.4ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (6.0ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.3ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (13.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (5.2ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "editor_id" = ?, "editor_type" = ?, "body" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["editor_id", 2], ["editor_type", "DummyUser"], ["body", "Something else"], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (1.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (1.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 29ms (ActiveRecord: 1.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont create unless authorized -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must create if authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.6ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 26ms (ActiveRecord: 1.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0003_wont destroy unless authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to (3.2ms) Date: Tue, 24 Sep 2013 18:42:37 -0500 From: no-reply@example.com Message-ID: <5242236d606e9_7eaba0be782305@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (30.3ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (3.9ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (3.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (3.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (3.9ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (1.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (5.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (4.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 8]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 9]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 10 AND "commontator_comments"."thread_id" = 6) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["creator_id", 10], ["creator_type", "DummyUser"], ["thread_id", 6], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 10 AND "commontator_comments"."thread_id" = 6) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["creator_id", 10], ["creator_type", "DummyUser"], ["thread_id", 6], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (4.9ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 6]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (5.4ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 11 AND "commontator_comments"."thread_id" = 7) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["creator_id", 11], ["creator_type", "DummyUser"], ["thread_id", 7], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (4.4ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 7]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 7]] SQL (0.4ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 7 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["closer_id", 11], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 7]]  (5.5ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 7]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 7]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 7], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 8]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (3.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (3.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (3.6ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 12]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]] SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 5 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (3.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (3.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (3.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (4.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (3.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (3.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (3.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 15) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00], ["subscriber_id", 15], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Tue, 24 Sep 2013 23:42:37 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 10]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 15]]  (12.5ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (4.9ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.0ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.3ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.2ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.2ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.5ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.6ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.3ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.4ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.3ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.7ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (6.0ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.1ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.4ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.7ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.7ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.0ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.7ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (13.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (5.4ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "editor_id" = ?, "editor_type" = ?, "body" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["editor_id", 2], ["editor_type", "DummyUser"], ["body", "Something else"], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.6ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (1.2ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 31ms (ActiveRecord: 2.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (4.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (1.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont create unless authorized -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must create if authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0003_wont destroy unless authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to (3.2ms) Date: Tue, 24 Sep 2013 18:42:50 -0500 From: no-reply@example.com Message-ID: <5242237a89e8_7eb34b3e80905cd@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 18ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (22.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (1.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (5.6ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 3]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 6]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (3.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (3.9ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 8 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["creator_id", 8], ["creator_type", "DummyUser"], ["thread_id", 4], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 8 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["creator_id", 8], ["creator_type", "DummyUser"], ["thread_id", 4], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (5.1ms) commit transaction Commontator::Comment Load (0.3ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 4]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 10 AND "commontator_comments"."thread_id" = 6) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["creator_id", 10], ["creator_type", "DummyUser"], ["thread_id", 6], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (5.1ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 6]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 6]] SQL (0.4ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 6 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["closer_id", 10], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 6]]  (5.5ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 6]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 6]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 6], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 7]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 8]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 11]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 8]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 12]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (5.2ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 7 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."id" != 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 10 [["closed_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00], ["closer_id", 15], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."id" != 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 10 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:42:50 UTC +00:00]]  (4.2ms) commit transaction  (13.2ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.2ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.3ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.2ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.5ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (6.1ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.4ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.4ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.4ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (6.0ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.4ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (7.8ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.3ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.8ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (6.0ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.4ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.1ms) begin transaction SQL (1.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (11.5ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "editor_id" = ?, "editor_type" = ?, "body" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["editor_id", 2], ["editor_type", "DummyUser"], ["body", "Something else"], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (1.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:58:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["editor_id", 2], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (1.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 29ms (ActiveRecord: 1.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread ----------------------------------------------------------------- Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (1.6ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont create unless authorized -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must create if authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0003_wont destroy unless authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to (3.3ms) Date: Tue, 24 Sep 2013 18:59:00 -0500 From: no-reply@example.com Message-ID: <52422744791b2_7f32b3fe84590d9@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 19ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (31.7ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (5.3ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (5.2ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (5.3ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 3]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 3]] SQL (0.4ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 3 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["closer_id", 3], ["closer_type", "DummyUser"], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 3]]  (5.3ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 3]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 3]] Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 3], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 4]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (5.7ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (1.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (6.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 5]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (5.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (5.4ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (3.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (3.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 8]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 3 [["unread", 1], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (3.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 2], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 0], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (5.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 13 AND "commontator_comments"."thread_id" = 9) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["creator_id", 13], ["creator_type", "DummyUser"], ["thread_id", 9], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (5.4ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 13 AND "commontator_comments"."thread_id" = 9) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["creator_id", 13], ["creator_type", "DummyUser"], ["thread_id", 9], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (5.2ms) commit transaction Commontator::Comment Load (0.3ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 9]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 23:59:00 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 15) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 23:59:01 UTC +00:00], ["subscriber_id", 15], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Tue, 24 Sep 2013 23:59:01 UTC +00:00]]  (5.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 10]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 10]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 15]]  (14.0ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.2ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.6ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.3ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.2ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.2ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.8ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.7ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.5ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.3ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.9ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (6.3ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.4ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.8ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.8ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.8ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.2ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (12.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (5.9ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 17ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "editor_id" = ?, "editor_type" = ?, "body" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["editor_id", 2], ["editor_type", "DummyUser"], ["body", "Something else"], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (19.9ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (1.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["editor_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 17ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (1.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 29ms (ActiveRecord: 1.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.7ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont create unless authorized -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must create if authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (1.2ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0003_wont destroy unless authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to (3.2ms) Date: Tue, 24 Sep 2013 19:00:41 -0500 From: no-reply@example.com Message-ID: <524227a9e7ad0_7f44e41e84275c1@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 17ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:00:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (30.6ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (5.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (5.8ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (5.4ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 3]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (3.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (4.4ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (5.4ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 4]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 4]] SQL (0.4ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 4 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["closer_id", 5], ["closer_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]]  (29.0ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 4]] DummyModel Load (1.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 4], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 5]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (3.9ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (5.0ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."id" != 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 7 [["closed_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["closer_id", 10], ["closer_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."id" != 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 7 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (4.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (4.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (5.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 12]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 1], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 5 [["unread", 1], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (4.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 2], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 0], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (5.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 15) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00], ["subscriber_id", 15], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 25 Sep 2013 00:00:42 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 10]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 15]]  (13.7ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.0ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.2ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.3ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.1ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.6ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.8ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.7ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.4ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.8ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.4ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.9ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (6.3ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.1ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.6ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.7ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.8ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.3ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.5ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (11.7ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 17ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "editor_id" = ?, "editor_type" = ?, "body" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["editor_id", 2], ["editor_type", "DummyUser"], ["body", "Something else"], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (19.9ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (1.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["editor_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 17ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (1.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 29ms (ActiveRecord: 1.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (4.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (1.3ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont create unless authorized -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must create if authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0003_wont destroy unless authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to (3.2ms) Date: Tue, 24 Sep 2013 19:01:19 -0500 From: no-reply@example.com Message-ID: <524227cfcf22c_7f4e103de7c9787f@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 18ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (29.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:19 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00]]  (5.3ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00]]  (3.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (1.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (3.6ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00]]  (3.6ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00]]  (3.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 8]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 1], ["updated_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 3 [["unread", 1], ["updated_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 2], ["updated_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 0], ["updated_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 9 AND "commontator_comments"."thread_id" = 5) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00], ["creator_id", 9], ["creator_type", "DummyUser"], ["thread_id", 5], ["updated_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00]]  (5.4ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 5]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 5]] SQL (0.4ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 5 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00], ["closer_id", 9], ["closer_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 5]]  (4.7ms) commit transaction Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 5]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 5]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 5], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 6]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00]]  (4.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00]]  (3.9ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 10 AND "commontator_comments"."thread_id" = 7) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00], ["creator_id", 10], ["creator_type", "DummyUser"], ["thread_id", 7], ["updated_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 10 AND "commontator_comments"."thread_id" = 7) LIMIT 1 SQL (0.5ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00], ["creator_id", 10], ["creator_type", "DummyUser"], ["thread_id", 7], ["updated_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00]]  (4.8ms) commit transaction Commontator::Comment Load (0.3ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 7]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00]]  (3.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00]]  (5.2ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 8]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 11]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 8]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 12]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00]]  (5.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00]]  (5.5ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."id" != 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 9 [["closed_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00], ["closer_id", 13], ["closer_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."id" != 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 9 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 15) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00], ["subscriber_id", 15], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 25 Sep 2013 00:01:20 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 10]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 15]]  (13.6ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (6.0ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.9ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.3ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.2ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.6ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.6ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (6.0ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.4ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.2ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.3ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.9ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.3ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (7.2ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.5ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.8ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.9ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (6.1ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.6ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.6ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (11.5ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 17ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "editor_id" = ?, "editor_type" = ?, "body" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["editor_id", 2], ["editor_type", "DummyUser"], ["body", "Something else"], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (19.8ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (1.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["editor_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 17ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 25 Sep 2013 00:02:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (1.2ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 29ms (ActiveRecord: 1.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.7ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (4.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (1.3ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont create unless authorized -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must create if authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0003_wont destroy unless authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to (3.2ms) Date: Tue, 24 Sep 2013 19:02:09 -0500 From: no-reply@example.com Message-ID: <5242280151129_7f61eade7c66499@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 18ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (27.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (4.2ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (4.8ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 2]]  (0.0ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] SQL (0.2ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (4.0ms) commit transaction Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 3]]  (22.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (4.9ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (3.7ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (4.7ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 4]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 5]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 1], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (3.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 2], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 0], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (5.3ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (5.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (5.0ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."id" != 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 8 [["closed_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["closer_id", 11], ["closer_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."id" != 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 8 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (5.2ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 12]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 15) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00], ["subscriber_id", 15], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 25 Sep 2013 00:02:09 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 10]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 10]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 15]]  (14.0ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.3ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (4.6ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.0ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.0ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.5ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.2ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.5ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.3ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.9ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.3ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (7.2ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.1ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.3ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.6ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.6ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:41 UTC +00:00]]  (11.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:41 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:41 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "editor_id" = ?, "editor_type" = ?, "body" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["editor_id", 2], ["editor_type", "DummyUser"], ["body", "Something else"], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.4ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["editor_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.8ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 30ms (ActiveRecord: 1.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (4.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (1.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont create unless authorized -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must create if authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0003_wont destroy unless authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to (3.2ms) Date: Tue, 24 Sep 2013 19:02:42 -0500 From: no-reply@example.com Message-ID: <52422822bdc5a_7f6addfe78535f9@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 17ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (24.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (5.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (1.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (5.5ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:42 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00]]  (5.6ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 6 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00], ["creator_id", 6], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 6 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00], ["creator_id", 6], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00]]  (4.8ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 3]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 7 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00], ["creator_id", 7], ["creator_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00]]  (5.3ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 4]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 4]] SQL (0.4ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 4 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00], ["closer_id", 7], ["closer_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]]  (5.0ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 4]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 4], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 5]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 8]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 9]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00]]  (5.2ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 10]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 11]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00]]  (3.9ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00]]  (3.3ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 8]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 12]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 1], ["updated_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 7 [["unread", 1], ["updated_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 2], ["updated_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 0], ["updated_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."id" != 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 10 [["closed_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00], ["closer_id", 15], ["closer_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."id" != 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 10 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:02:43 UTC +00:00]]  (4.6ms) commit transaction  (13.2ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (4.9ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.0ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.2ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.5ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.3ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.4ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.7ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.1ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.1ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.7ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.9ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (6.7ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.1ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.1ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.4ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (4.5ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (4.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (4.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (3.7ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (17.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "editor_id" = ?, "editor_type" = ?, "body" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["editor_id", 2], ["editor_type", "DummyUser"], ["body", "Something else"], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (1.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:52 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["editor_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.8ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 29ms (ActiveRecord: 1.5ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (2.8ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont create unless authorized -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must create if authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0003_wont destroy unless authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to (3.2ms) Date: Tue, 24 Sep 2013 19:02:53 -0500 From: no-reply@example.com Message-ID: <5242282d6ac5b_7f73d3be7c19364@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 19ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (31.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (5.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 1], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (5.0ms) commit transaction  (0.2ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 2], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 0], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (4.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (4.6ms) commit transaction  (1.1ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (5.5ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (5.8ms) commit transaction Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 3]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (4.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 4 [["closed_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["closer_id", 5], ["closer_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 4 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (4.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (5.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 6]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (4.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (4.9ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (3.7ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (3.5ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (4.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (4.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (3.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 13 AND "commontator_comments"."thread_id" = 8) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["creator_id", 13], ["creator_type", "DummyUser"], ["thread_id", 8], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (5.0ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 8]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 8]] SQL (0.3ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 8 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["closer_id", 13], ["closer_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 8]]  (5.2ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 8]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 8]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 8], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 9]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (5.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (5.6ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 15) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00], ["subscriber_id", 15], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 25 Sep 2013 00:02:53 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 10]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 15]]  (10.8ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (4.4ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (4.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (4.8ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (4.9ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (4.6ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.2ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.9ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (4.7ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.0ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (4.6ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.2ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (4.5ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.0ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (3.9ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (4.3ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (4.8ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (4.8ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (4.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (4.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (3.6ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (3.7ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (3.7ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (13.3ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "editor_id" = ?, "editor_type" = ?, "body" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["editor_id", 2], ["editor_type", "DummyUser"], ["body", "Something else"], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (1.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["editor_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (1.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 30ms (ActiveRecord: 1.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:00 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (4.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (1.3ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont create unless authorized -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must create if authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0003_wont destroy unless authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to (3.3ms) Date: Tue, 24 Sep 2013 19:03:01 -0500 From: no-reply@example.com Message-ID: <524228352d92b_7f7c471e7c4168a@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 18ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (29.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (5.1ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (5.2ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."id" != 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 3 [["closed_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["closer_id", 3], ["closer_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (1.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."id" != 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 3 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (5.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (4.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 5]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 6]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 6]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 8]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (4.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (3.9ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 9 AND "commontator_comments"."thread_id" = 7) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["creator_id", 9], ["creator_type", "DummyUser"], ["thread_id", 7], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (4.8ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 7]]  (0.0ms) begin transaction Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 7]] SQL (0.2ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 7 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["closer_id", 9], ["closer_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 7]]  (4.5ms) commit transaction Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 7]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 7]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 7], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 8]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (4.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (4.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (4.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 15) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00], ["subscriber_id", 15], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 10]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 15]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 1], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (4.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 7 [["unread", 1], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (4.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 2], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (3.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 0], ["updated_at", Wed, 25 Sep 2013 00:03:01 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (12.4ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (4.9ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (4.9ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (4.7ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (4.9ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.1ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.2ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (4.8ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (4.6ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (4.6ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.1ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (4.9ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (4.5ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (6.7ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.4ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.8ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (6.3ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.2ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (11.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "editor_id" = ?, "editor_type" = ?, "body" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["editor_id", 2], ["editor_type", "DummyUser"], ["body", "Something else"], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (1.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["editor_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (1.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 29ms (ActiveRecord: 1.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (4.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (1.3ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont create unless authorized -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must create if authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0003_wont destroy unless authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to (3.2ms) Date: Tue, 24 Sep 2013 19:03:14 -0500 From: no-reply@example.com Message-ID: <5242284212c9d_7f864a5e845895f@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 18ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (22.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (5.0ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (4.1ms) commit transaction Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 3]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (3.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (3.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 9]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 10]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (4.8ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 11]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 12]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 1], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 7 [["unread", 1], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 2], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 0], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (3.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (3.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (4.8ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 14 AND "commontator_comments"."thread_id" = 8) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["creator_id", 14], ["creator_type", "DummyUser"], ["thread_id", 8], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (5.3ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 8]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 8]] SQL (0.3ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 8 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["closer_id", 14], ["closer_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 8]]  (5.4ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 8]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 8]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 8], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 9]]  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."id" != 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 10 [["closed_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00], ["closer_id", 15], ["closer_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."id" != 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 10 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:03:14 UTC +00:00]]  (4.4ms) commit transaction  (13.6ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (4.8ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (4.8ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (6.0ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.1ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.4ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.4ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.6ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.3ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.5ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.3ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.7ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (6.7ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.8ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.8ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.3ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.5ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.6ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (13.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (4.7ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "editor_id" = ?, "editor_type" = ?, "body" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["editor_id", 2], ["editor_type", "DummyUser"], ["body", "Something else"], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (1.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["editor_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (1.2ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 30ms (ActiveRecord: 1.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (30.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont create unless authorized -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must create if authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0003_wont destroy unless authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to (3.2ms) Date: Tue, 24 Sep 2013 19:09:50 -0500 From: no-reply@example.com Message-ID: <524229ce170f9_7fc447fe7810917@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (24.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (5.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (5.8ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 3]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 6]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 3]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (5.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 8 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["creator_id", 8], ["creator_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (4.1ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 4]]  (0.0ms) begin transaction Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 4]] SQL (0.2ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 4 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["closer_id", 8], ["closer_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]]  (3.9ms) commit transaction Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 4]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 4], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 5]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (4.8ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (5.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 9]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 10]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 1], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 5 [["unread", 1], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 2], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 0], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 7]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 11]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 12]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (3.9ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (3.8ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 13 AND "commontator_comments"."thread_id" = 8) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["creator_id", 13], ["creator_type", "DummyUser"], ["thread_id", 8], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 13 AND "commontator_comments"."thread_id" = 8) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["creator_id", 13], ["creator_type", "DummyUser"], ["thread_id", 8], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (4.8ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 8]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (5.2ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."id" != 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 9 [["closed_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["closer_id", 14], ["closer_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."id" != 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 9 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:09:50 UTC +00:00]]  (5.0ms) commit transaction  (14.1ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.7ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.0ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.3ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.2ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.2ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.5ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (6.3ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.4ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.6ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.8ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (6.2ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (6.4ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.3ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.4ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (6.0ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (6.1ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.4ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (6.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.5ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (12.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (5.5ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (19.7ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "editor_id" = ?, "editor_type" = ?, "body" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["editor_id", 2], ["editor_type", "DummyUser"], ["body", "Something else"], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.4ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["editor_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.8ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 30ms (ActiveRecord: 1.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (4.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (1.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont create unless authorized -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must create if authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0003_wont destroy unless authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to (3.3ms) Date: Tue, 24 Sep 2013 19:10:11 -0500 From: no-reply@example.com Message-ID: <524229e38892a_7fcc63de7c77215@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 18ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (28.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (5.9ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (6.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (3.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 3]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (5.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (5.3ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (5.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (3.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 5]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 9]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 5]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 10]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (4.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (4.9ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 11 AND "commontator_comments"."thread_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["creator_id", 11], ["creator_type", "DummyUser"], ["thread_id", 6], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (5.8ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 6]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 6]] SQL (0.3ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 6 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["closer_id", 11], ["closer_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 6]]  (4.8ms) commit transaction Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 6]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 6]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 6], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 7]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (4.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (5.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 8]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 12]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 1], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 7 [["unread", 1], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 2], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 0], ["updated_at", Wed, 25 Sep 2013 00:10:11 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:12 UTC +00:00]]  (5.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:12 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:12 UTC +00:00]]  (5.2ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."id" != 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 9 [["closed_at", Wed, 25 Sep 2013 00:10:12 UTC +00:00], ["closer_id", 14], ["closer_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:10:12 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."id" != 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.4ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 9 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:10:12 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:12 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:10:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:12 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:10:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:10:12 UTC +00:00]]  (5.3ms) commit transaction  (13.1ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.0ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.0ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.3ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.4ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.5ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.5ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.2ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.2ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.4ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.6ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (6.5ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.1ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.8ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (6.0ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.1ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (14.5ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (5.7ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "editor_id" = ?, "editor_type" = ?, "body" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["editor_id", 2], ["editor_type", "DummyUser"], ["body", "Something else"], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (1.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["editor_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (1.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 29ms (ActiveRecord: 1.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.7ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (1.3ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont create unless authorized -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must create if authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0003_wont destroy unless authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to (3.3ms) Date: Tue, 24 Sep 2013 19:11:13 -0500 From: no-reply@example.com Message-ID: <52422a215985f_7fd5d3fe78827cb@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 18ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (29.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (5.2ms) commit transaction Commontator::Subscription Load (1.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (5.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (5.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 5]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (3.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (4.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 5]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 6]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 1], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (4.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 3 [["unread", 1], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (3.8ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 2], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 0], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 8 AND "commontator_comments"."thread_id" = 6) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["creator_id", 8], ["creator_type", "DummyUser"], ["thread_id", 6], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (4.8ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 6]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 6]] SQL (0.4ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 6 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["closer_id", 8], ["closer_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 6]]  (4.9ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 6]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 6]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 6], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 7]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (5.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 9]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 9]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (4.4ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (5.2ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 15 AND "commontator_comments"."thread_id" = 10) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["creator_id", 15], ["creator_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (5.4ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 15 AND "commontator_comments"."thread_id" = 10) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00], ["creator_id", 15], ["creator_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 25 Sep 2013 00:11:13 UTC +00:00]]  (4.9ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 10]]  (27.9ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.2ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (12.3ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.1ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (4.5ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (4.8ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.4ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.3ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (4.7ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (4.6ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.1ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (4.6ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (6.9ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.5ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.0ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (4.7ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (4.4ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (4.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (4.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (11.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "editor_id" = ?, "editor_type" = ?, "body" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["editor_id", 2], ["editor_type", "DummyUser"], ["body", "Something else"], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (1.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["editor_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (1.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 29ms (ActiveRecord: 1.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.7ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (1.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont create unless authorized -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must create if authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#create as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0003_wont destroy unless authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#destroy as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to (3.5ms) Date: Tue, 24 Sep 2013 19:15:24 -0500 From: no-reply@example.com Message-ID: <52422b1c7a4f8_7ff5597e785640@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 18ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (29.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (12.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (4.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 3]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 3]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 5]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (5.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (5.3ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."id" != 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 5 [["closed_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["closer_id", 10], ["closer_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."id" != 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 5 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (5.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 11 AND "commontator_comments"."thread_id" = 6) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["creator_id", 11], ["creator_type", "DummyUser"], ["thread_id", 6], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (5.2ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 11 AND "commontator_comments"."thread_id" = 6) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["creator_id", 11], ["creator_type", "DummyUser"], ["thread_id", 6], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (5.7ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 6]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (5.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (5.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 8]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 1], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 7 [["unread", 1], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 2], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 0], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:24 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 15 AND "commontator_comments"."thread_id" = 9) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:15:25 UTC +00:00], ["creator_id", 15], ["creator_type", "DummyUser"], ["thread_id", 9], ["updated_at", Wed, 25 Sep 2013 00:15:25 UTC +00:00]]  (6.0ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 9]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 9]] SQL (0.5ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 9 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Wed, 25 Sep 2013 00:15:25 UTC +00:00], ["closer_id", 15], ["closer_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:15:25 UTC +00:00]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:15:25 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:15:25 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]]  (6.0ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 9]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 9]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 9], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 10]]  (10.8ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.5ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (4.9ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (4.9ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.9ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.2ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.4ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.1ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.3ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.0ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (6.0ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.1ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.2ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.3ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.9ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.7ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.5ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.5ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (14.1ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.8ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.4ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (12.4ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.9ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.1ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.9ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.3ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.6ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.3ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (6.2ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.7ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.4ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.4ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (6.0ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (6.1ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.4ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (12.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (19.3ms) RELEASE SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (21.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.9ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["editor_id", 2], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (15.9ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (21.9ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 31ms (ActiveRecord: 22.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.8ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Wed, 25 Sep 2013 00:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont create unless authorized -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must create if authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0003_wont destroy unless authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.5ms) Sent mail to (3.3ms) Date: Tue, 24 Sep 2013 19:58:27 -0500 From: no-reply@example.com Message-ID: <52423533da78_64e86de7c949a1@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (19.9ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (5.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (5.3ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (5.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (5.5ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (7.3ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (5.7ms) commit transaction Commontator::Comment Load (0.3ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 3]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (5.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (6.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (5.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (5.9ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 9 AND "commontator_comments"."thread_id" = 5) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["creator_id", 9], ["creator_type", "DummyUser"], ["thread_id", 5], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (5.6ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 5]]  (0.1ms) begin transaction Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 5]] SQL (0.2ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 5 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["closer_id", 9], ["closer_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 5]]  (4.7ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 5]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 5]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 5], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 6]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (5.0ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."id" != 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 7 [["closed_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["closer_id", 10], ["closer_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (3.9ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."id" != 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 7 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (3.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (3.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (4.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 8]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 11]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 8]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 12]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (5.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (4.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (3.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (1.3ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 1], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (5.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 7 [["unread", 1], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (4.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 2], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 0], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (3.9ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 00:58:27 UTC +00:00]]  (4.6ms) commit transaction  (15.5ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.5ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.5ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.2ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.8ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (6.0ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (4.8ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.2ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (4.6ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (4.6ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (4.8ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.8ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.1ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.4ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.0ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.8ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.8ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.3ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.5ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (12.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (6.4ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (20.3ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 01:01:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (25.3ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.8ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["editor_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (15.5ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (21.0ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 30ms (ActiveRecord: 21.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont subscribe unless authorized --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_wont unsubscribe unless authorized ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to (3.2ms) Date: Tue, 24 Sep 2013 20:01:05 -0500 From: no-reply@example.com Message-ID: <524235d186ebd_678de1e807652c@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (23.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (4.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (3.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (4.2ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (4.5ms) commit transaction Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 3]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (4.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (6.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (5.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (5.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 5]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 1], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 2], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 0], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (5.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (5.8ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 6 AND "commontator_comments"."thread_id" = 5) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["creator_id", 6], ["creator_type", "DummyUser"], ["thread_id", 5], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (5.6ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 5]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 5]] SQL (0.4ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 5 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["closer_id", 6], ["closer_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 5]]  (5.1ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 5]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 5]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 5], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 6]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (6.2ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (5.8ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (5.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (5.7ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."id" != 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 8 [["closed_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["closer_id", 11], ["closer_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."id" != 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 8 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Wed, 25 Sep 2013 01:01:05 UTC +00:00]]  (5.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 9]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 12]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 9]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:06 UTC +00:00]]  (5.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:06 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:01:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:06 UTC +00:00]]  (5.6ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:01:06 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 25 Sep 2013 01:01:06 UTC +00:00]]  (5.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:01:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:01:06 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 15) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:01:06 UTC +00:00], ["subscriber_id", 15], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 25 Sep 2013 01:01:06 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 10]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 15]]  (13.0ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.8ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.7ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.2ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (6.4ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.3ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.6ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.4ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.5ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.5ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (6.1ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.3ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.3ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.4ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.9ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (6.1ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.5ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.5ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (13.4ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (5.5ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 18ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.5ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["editor_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (21.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 30ms (ActiveRecord: 21.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont subscribe unless authorized --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_wont unsubscribe unless authorized ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to (3.2ms) Date: Tue, 24 Sep 2013 20:22:31 -0500 From: no-reply@example.com Message-ID: <52423ad7d378d_b6ce37e84949f9@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (15.8ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:31 UTC +00:00]]  (31.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00]]  (5.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00]]  (6.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00]]  (5.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (1.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00]]  (5.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 6 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00], ["creator_id", 6], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00]]  (5.4ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 6 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.6ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00], ["creator_id", 6], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00]]  (5.5ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 3]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00]]  (5.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00]]  (5.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 8]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00]]  (3.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00]]  (5.4ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 9 AND "commontator_comments"."thread_id" = 5) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00], ["creator_id", 9], ["creator_type", "DummyUser"], ["thread_id", 5], ["updated_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00]]  (5.5ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 5]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 5]] SQL (0.4ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 5 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00], ["closer_id", 9], ["closer_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 5]]  (5.1ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 5]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 5]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 5], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 6]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00]]  (5.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00]]  (5.2ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 8]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 11]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 8]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 12]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00]]  (5.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00]]  (5.4ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."id" != 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 9 [["closed_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00], ["closer_id", 13], ["closer_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."id" != 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 9 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00]]  (5.2ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00]]  (5.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 15) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00], ["subscriber_id", 15], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 10]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 15]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 1], ["updated_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 7 [["unread", 1], ["updated_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00]]  (3.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 2], ["updated_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 0], ["updated_at", Wed, 25 Sep 2013 01:22:32 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (12.8ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.9ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (6.0ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.4ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.1ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.1ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.7ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (6.1ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.1ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.3ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (6.3ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.1ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.5ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.8ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (6.4ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.9ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.5ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (10.6ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (4.9ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (20.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (22.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["editor_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (15.5ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 23ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (22.4ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 32ms (ActiveRecord: 23.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (7.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont subscribe unless authorized --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_wont unsubscribe unless authorized ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.9ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 19ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (27.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (3.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 1], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 2], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 0], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (5.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (5.3ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (5.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (5.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.9ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (5.3ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (4.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."id" != 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 5 [["closed_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["closer_id", 9], ["closer_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."id" != 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 5 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (4.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (5.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 10]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 11]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (5.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (5.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (5.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 12]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (3.8ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 14 AND "commontator_comments"."thread_id" = 8) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["creator_id", 14], ["creator_type", "DummyUser"], ["thread_id", 8], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (3.8ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 14 AND "commontator_comments"."thread_id" = 8) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["creator_id", 14], ["creator_type", "DummyUser"], ["thread_id", 8], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (4.7ms) commit transaction Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 8]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (3.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 15 AND "commontator_comments"."thread_id" = 9) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["creator_id", 15], ["creator_type", "DummyUser"], ["thread_id", 9], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]]  (5.4ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 9]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 9]] SQL (0.3ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 9 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["closer_id", 15], ["closer_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:37:07 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]]  (4.6ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 9]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 9]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 9], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 10]]  (12.3ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.2ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.2ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.3ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.0ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.1ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.3ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.5ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.0ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (4.9ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (4.6ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.4ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (4.4ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (4.3ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.0ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.6ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.4ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (4.8ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (4.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (4.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (3.6ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.5ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.5ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (10.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (3.8ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]] SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 18ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (1.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["editor_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (22.4ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 32ms (ActiveRecord: 23.5ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.7ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.9ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.4ms) begin transaction -------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont subscribe unless authorized --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_wont unsubscribe unless authorized ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.6ms) Sent mail to Undisclosed Recipients (3.6ms) Date: Tue, 24 Sep 2013 20:39:16 -0500 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <52423ec4e2ca3_ed811fbe8036c@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 19ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 01:39:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (17.4ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (3.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (3.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (3.7ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (1.7ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (3.8ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (4.1ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 6 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["creator_id", 6], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (3.8ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 3]]  (0.0ms) begin transaction Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 3]] SQL (0.3ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 3 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["closer_id", 6], ["closer_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 3]]  (4.0ms) commit transaction Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 3]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 3]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 3], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 4]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (3.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (3.8ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (3.5ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (5.2ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 8]] SQL (0.4ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 1], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 3 [["unread", 1], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (4.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 2], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (3.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 0], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (4.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 9]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 10]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (4.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (4.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (3.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 11]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 12]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (3.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (3.8ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (4.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (3.7ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 14 AND "commontator_comments"."thread_id" = 9) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["creator_id", 14], ["creator_type", "DummyUser"], ["thread_id", 9], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (3.8ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 14 AND "commontator_comments"."thread_id" = 9) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["creator_id", 14], ["creator_type", "DummyUser"], ["thread_id", 9], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (4.5ms) commit transaction Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 9]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (3.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (3.9ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."id" != 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 10 [["closed_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00], ["closer_id", 15], ["closer_type", "DummyUser"], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (3.6ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."id" != 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 10 [["closed_at", nil], ["updated_at", Wed, 25 Sep 2013 01:39:17 UTC +00:00]]  (3.3ms) commit transaction  (13.1ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.4ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.6ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.7ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.5ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.3ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.6ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.7ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.7ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.3ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.5ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.6ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.5ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.7ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (6.0ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (6.0ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (6.2ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.6ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.5ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.5ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.5ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (16.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (5.1ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.3ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["editor_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (1.5ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (9.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont subscribe unless authorized --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (20.6ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (1.3ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 27ms (ActiveRecord: 22.4ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_wont unsubscribe unless authorized ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to Undisclosed Recipients (3.6ms) Date: Tue, 08 Oct 2013 16:36:31 -0500 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <52547adf5a216_175c661e80913d2@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (23.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (3.9ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (4.7ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 2]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] SQL (0.4ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (4.7ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 2]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 3]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (5.4ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 8]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 1], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 3 [["unread", 1], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 2], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 0], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (1.8ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (4.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 9]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 10]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (5.3ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 11]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 12]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (5.5ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."id" != 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 8 [["closed_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["closer_id", 13], ["closer_type", "DummyUser"], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."id" != 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 8 [["closed_at", nil], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (5.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (5.2ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 15 AND "commontator_comments"."thread_id" = 10) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["creator_id", 15], ["creator_type", "DummyUser"], ["thread_id", 10], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (6.1ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 15 AND "commontator_comments"."thread_id" = 10) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00], ["creator_id", 15], ["creator_type", "DummyUser"], ["thread_id", 10], ["updated_at", Tue, 08 Oct 2013 21:36:31 UTC +00:00]]  (4.6ms) commit transaction Commontator::Comment Load (0.3ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 10]]  (11.5ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (6.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (4.4ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (4.6ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (4.0ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (4.7ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (4.9ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (4.4ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (4.4ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.1ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (4.9ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (4.4ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (3.9ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (4.1ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (4.2ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (4.2ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (3.9ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (4.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (4.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (3.7ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (3.7ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.5ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (11.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (3.8ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.4ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["editor_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:11 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (2.2ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont subscribe unless authorized --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (22.4ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (1.7ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 29ms (ActiveRecord: 24.8ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_wont unsubscribe unless authorized ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to Undisclosed Recipients (3.9ms) Date: Tue, 08 Oct 2013 16:37:12 -0500 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <52547b0853e3e_179566de74744d7@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (25.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (5.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (4.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (3.3ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (3.8ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (3.5ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."id" != 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 3 [["closed_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["closer_id", 4], ["closer_type", "DummyUser"], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (3.4ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."id" != 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 3 [["closed_at", nil], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (3.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (3.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (4.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (3.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (5.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (3.8ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 5]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 9]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 5]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 10]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (3.8ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (3.4ms) commit transaction  (0.0ms) begin transaction SQL (25.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (2.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (4.9ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 7) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["creator_id", 12], ["creator_type", "DummyUser"], ["thread_id", 7], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 7) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["creator_id", 12], ["creator_type", "DummyUser"], ["thread_id", 7], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (5.6ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 7]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (3.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 13 AND "commontator_comments"."thread_id" = 8) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["creator_id", 13], ["creator_type", "DummyUser"], ["thread_id", 8], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (5.3ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 8]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 8]] SQL (0.4ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 8 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["closer_id", 13], ["closer_type", "DummyUser"], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 8]]  (5.2ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 8]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 8]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 8], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 9]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (5.3ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 15) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00], ["subscriber_id", 15], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 10]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 15]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 1], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 7 [["unread", 1], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 2], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 0], ["updated_at", Tue, 08 Oct 2013 21:37:12 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (12.8ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.2ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.0ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.2ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.1ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.2ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.2ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.6ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.1ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.3ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.6ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.1ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.6ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.1ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.5ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.7ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.2ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.5ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00]]  (18.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00]]  (5.1ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.3ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 22ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["editor_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (22.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.3ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont subscribe unless authorized --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (1.5ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 27ms (ActiveRecord: 1.9ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_wont unsubscribe unless authorized ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to Undisclosed Recipients (3.4ms) Date: Tue, 08 Oct 2013 16:37:32 -0500 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <52547b1c9879e_17b0da5e80286c@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (31.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (5.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 1], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 2], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 0], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 3]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 5]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 6]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 8 AND "commontator_comments"."thread_id" = 5) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["creator_id", 8], ["creator_type", "DummyUser"], ["thread_id", 5], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (5.5ms) commit transaction Commontator::Comment Exists (0.3ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 5]]  (0.0ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 5]] SQL (0.2ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 5 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["closer_id", 8], ["closer_type", "DummyUser"], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]] Commontator::Thread Exists (1.8ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 5]]  (5.4ms) commit transaction Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 5]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 5]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 5], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 6]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (4.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (4.3ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."id" != 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.4ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 8 [["closed_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["closer_id", 10], ["closer_type", "DummyUser"], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (5.1ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."id" != 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 8 [["closed_at", nil], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (3.9ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:32 UTC +00:00]]  (5.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:33 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:33 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:33 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:33 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:33 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Tue, 08 Oct 2013 21:37:33 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:33 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:33 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:33 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Tue, 08 Oct 2013 21:37:33 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:33 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:33 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 7]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:33 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:33 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:33 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:33 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:33 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:33 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:33 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:33 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 15 AND "commontator_comments"."thread_id" = 10) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:33 UTC +00:00], ["creator_id", 15], ["creator_type", "DummyUser"], ["thread_id", 10], ["updated_at", Tue, 08 Oct 2013 21:37:33 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 15 AND "commontator_comments"."thread_id" = 10) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 08 Oct 2013 21:37:33 UTC +00:00], ["creator_id", 15], ["creator_type", "DummyUser"], ["thread_id", 10], ["updated_at", Tue, 08 Oct 2013 21:37:33 UTC +00:00]]  (4.9ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 10]]  (13.8ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.6ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.3ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.9ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.1ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.3ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.3ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.2ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.1ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.4ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.6ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.1ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.1ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (6.0ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.7ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.0ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (11.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (5.4ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.3ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["editor_id", 3], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["editor_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Tue, 08 Oct 2013 21:37:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (1.6ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont subscribe unless authorized --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (20.9ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (1.4ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 27ms (ActiveRecord: 22.8ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_wont unsubscribe unless authorized ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to Undisclosed Recipients (3.4ms) Date: Tue, 08 Oct 2013 16:37:42 -0500 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <52547b263e321_17b833fe7884447@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (28.9ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (5.6ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (5.3ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 3]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (5.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (5.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 6]] SQL (0.4ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 1], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 3 [["unread", 1], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 2], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 0], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (3.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (4.2ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 7 AND "commontator_comments"."thread_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["creator_id", 7], ["creator_type", "DummyUser"], ["thread_id", 5], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (3.9ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 5]]  (0.0ms) begin transaction Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 5]] SQL (0.2ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 5 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["closer_id", 7], ["closer_type", "DummyUser"], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 5]]  (4.8ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 5]] DummyModel Load (1.8ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 5]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 5], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 6]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (4.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (3.6ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (3.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 7]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 8]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 9]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (3.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (3.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (3.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (3.3ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 7]]  (3.4ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (3.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."id" != 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 9 [["closed_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["closer_id", 14], ["closer_type", "DummyUser"], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (3.5ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."id" != 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 9 [["closed_at", nil], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (3.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (3.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00], ["updated_at", Tue, 08 Oct 2013 21:37:42 UTC +00:00]]  (3.5ms) commit transaction  (38.7ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (6.3ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (6.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (6.0ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.9ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (6.1ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.4ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.8ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.1ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.3ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.7ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (6.0ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (6.3ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.7ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.4ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (6.5ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (6.1ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.8ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (6.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (6.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (4.9ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (5.2ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.7ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (5.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.1ms) begin transaction SQL (1.5ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (20.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 18ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["editor_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 18ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (1.4ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.8ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont subscribe unless authorized --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_wont unsubscribe unless authorized ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.7ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.5ms) Sent mail to Undisclosed Recipients (3.8ms) Date: Wed, 06 Nov 2013 16:58:32 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <527ac9988c568_10de46be7814015@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 19ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (30.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (5.3ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 2]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] SQL (0.3ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (5.2ms) commit transaction Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 3]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (4.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (5.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (5.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (5.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 4]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 4]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (4.8ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (5.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (3.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (5.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (5.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 9]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 10]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (4.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (5.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."id" != 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.4ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 8 [["closed_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["closer_id", 12], ["closer_type", "DummyUser"], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (5.0ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."id" != 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 8 [["closed_at", nil], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (5.0ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 13 AND "commontator_comments"."thread_id" = 9) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["creator_id", 13], ["creator_type", "DummyUser"], ["thread_id", 9], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (3.8ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 13 AND "commontator_comments"."thread_id" = 9) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["creator_id", 13], ["creator_type", "DummyUser"], ["thread_id", 9], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (3.6ms) commit transaction Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 9]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (3.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (6.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:32 UTC +00:00]]  (5.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 15) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:33 UTC +00:00], ["subscriber_id", 15], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 06 Nov 2013 22:58:33 UTC +00:00]]  (5.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 10]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 15]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 1], ["updated_at", Wed, 06 Nov 2013 22:58:33 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 7 [["unread", 1], ["updated_at", Wed, 06 Nov 2013 22:58:33 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 2], ["updated_at", Wed, 06 Nov 2013 22:58:33 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 0], ["updated_at", Wed, 06 Nov 2013 22:58:33 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (32.1ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.2ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (4.8ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.6ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.1ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.3ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.6ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.7ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.7ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.8ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (6.2ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.1ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.1ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.7ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.6ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.8ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.1ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (6.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.5ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.9ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.5ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00]]  (14.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00]]  (5.4ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.9ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 18ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["editor_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 18ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (1.5ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.7ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont subscribe unless authorized --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_wont unsubscribe unless authorized ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.6ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to Undisclosed Recipients (3.6ms) Date: Wed, 06 Nov 2013 16:58:55 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <527ac9afb3a79_10ed799e7445271@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 19ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (34.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (5.9ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (6.0ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 2]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] SQL (0.4ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (6.8ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 3]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (5.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (5.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (5.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Wed, 06 Nov 2013 22:58:55 UTC +00:00]]  (5.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00]]  (5.8ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 6]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00]]  (5.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00]]  (5.1ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 7 AND "commontator_comments"."thread_id" = 6) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00], ["creator_id", 7], ["creator_type", "DummyUser"], ["thread_id", 6], ["updated_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00]]  (5.0ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 7 AND "commontator_comments"."thread_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00], ["creator_id", 7], ["creator_type", "DummyUser"], ["thread_id", 6], ["updated_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00]]  (5.0ms) commit transaction Commontator::Comment Load (0.3ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 6]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00]]  (4.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00]]  (6.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 7]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 8]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 9]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 1], ["updated_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 5 [["unread", 1], ["updated_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 2], ["updated_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 0], ["updated_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00]]  (5.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00]]  (5.5ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."id" != 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 8 [["closed_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00], ["closer_id", 10], ["closer_type", "DummyUser"], ["updated_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."id" != 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 8 [["closed_at", nil], ["updated_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00]]  (7.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 7]]  (5.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00], ["updated_at", Wed, 06 Nov 2013 22:58:56 UTC +00:00]]  (5.6ms) commit transaction  (1591.3ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (4.5ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (4.0ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (4.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (4.1ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (4.4ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (4.4ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.1ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (4.1ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (4.1ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (4.0ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (4.8ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (4.2ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (4.1ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (4.2ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (4.3ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (4.3ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (4.1ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (4.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (4.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (3.7ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.1ms) begin transaction SQL (1.8ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:24 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:24 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:24 UTC +00:00]]  (603.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (3.7ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.4ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (1.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 5ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.8ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["editor_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 1.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (2.8ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont subscribe unless authorized --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_wont unsubscribe unless authorized ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (2.8ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.8ms) Sent mail to Undisclosed Recipients (4.2ms) Date: Fri, 08 Nov 2013 21:27:26 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <527dab9e73836_4709d3be7c55880@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:26 UTC +00:00]]  (693.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00]]  (3.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00]]  (3.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00]]  (3.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00]]  (4.8ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00]]  (3.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.3ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00]]  (5.9ms) commit transaction Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00]]  (3.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00]]  (3.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (3.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00]]  (3.5ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00]]  (3.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00]]  (3.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 9]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 10]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00]]  (3.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00]]  (3.7ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 11 AND "commontator_comments"."thread_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00], ["creator_id", 11], ["creator_type", "DummyUser"], ["thread_id", 6], ["updated_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00]]  (3.8ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 11 AND "commontator_comments"."thread_id" = 6) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00], ["creator_id", 11], ["creator_type", "DummyUser"], ["thread_id", 6], ["updated_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00]]  (4.5ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 6]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00]]  (3.4ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00]]  (4.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00]]  (3.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 7]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 12]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]] SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 1], ["updated_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00]]  (3.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 7 [["unread", 1], ["updated_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00]]  (3.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 2], ["updated_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00]]  (3.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 0], ["updated_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00]]  (3.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00]]  (3.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."id" != 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 8 [["closed_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00], ["closer_id", 14], ["closer_type", "DummyUser"], ["updated_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00]]  (142.6ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."id" != 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (3.4ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 8 [["closed_at", nil], ["updated_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00]]  (3.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00]]  (3.9ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 15 AND "commontator_comments"."thread_id" = 9) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00], ["creator_id", 15], ["creator_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00]]  (3.8ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 9]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 9]] SQL (0.3ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 9 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00], ["closer_id", 15], ["closer_type", "DummyUser"], ["updated_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00], ["updated_at", Sat, 09 Nov 2013 03:27:27 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]]  (4.1ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 9]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 9]] Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 9], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 10]]  (16.5ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.7ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.9ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (6.3ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.8ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (6.4ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.3ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.5ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.6ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.2ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.4ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.6ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.3ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.1ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.8ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.5ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.7ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.3ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (6.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.5ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.8ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.5ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (12.2ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.0ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.0ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.5ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.2ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.8ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.3ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.9ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.4ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.4ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.3ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.9ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.2ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.4ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.8ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (6.0ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.2ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (6.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.8ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (20.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (5.5ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont subscribe unless authorized --------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_wont unsubscribe unless authorized ----------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to Undisclosed Recipients (3.5ms) Date: Thu, 14 Nov 2013 21:38:13 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <5285972572fb2_1046825e7492437@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (7.8ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (4.4ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (5.5ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (4.9ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (6.4ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."id" != 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.4ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 3 [["closed_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["closer_id", 3], ["closer_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."id" != 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 3 [["closed_at", nil], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (5.8ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (3.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (5.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 5]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 1], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (5.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 2], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 0], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (5.5ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.9ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 6 AND "commontator_comments"."thread_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["creator_id", 6], ["creator_type", "DummyUser"], ["thread_id", 5], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (6.9ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 5]]  (0.0ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 5]] SQL (0.2ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 5 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["closer_id", 6], ["closer_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 5]]  (5.6ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 5]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 5]] Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 5], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 6]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (5.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (6.2ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (5.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (5.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (4.6ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (4.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (5.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (5.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (5.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 8]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 11]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 12]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (4.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (5.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 9]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 9]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (5.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:38:13 UTC +00:00]]  (4.7ms) commit transaction  (17.7ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (4.9ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.3ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.0ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.3ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.6ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.9ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (6.1ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.6ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.6ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (6.0ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (6.1ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.7ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.7ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.8ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (6.4ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (6.2ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.6ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.5ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (5.5ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00]]  (13.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont subscribe unless authorized --------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_wont unsubscribe unless authorized ----------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to Undisclosed Recipients (3.5ms) Date: Thu, 14 Nov 2013 21:41:46 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <528597fae869e_108e871e782498@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]]  (11.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 3]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 1], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 3 [["unread", 1], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 2], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]]  (3.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 0], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 8 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00], ["creator_id", 8], ["creator_type", "DummyUser"], ["thread_id", 4], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]]  (4.9ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 4]]  (0.1ms) begin transaction Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 4]] SQL (0.4ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 4 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00], ["closer_id", 8], ["closer_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]]  (4.5ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 4]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]] Commontator::Thread Load (0.3ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 4], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 5]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 9]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 10]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 11 AND "commontator_comments"."thread_id" = 7) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00], ["creator_id", 11], ["creator_type", "DummyUser"], ["thread_id", 7], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]]  (5.3ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 11 AND "commontator_comments"."thread_id" = 7) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00], ["creator_id", 11], ["creator_type", "DummyUser"], ["thread_id", 7], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]]  (5.1ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 7]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]]  (5.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]]  (5.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]]  (3.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 8]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 12]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 8]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]]  (4.8ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."id" != 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 9 [["closed_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00], ["closer_id", 14], ["closer_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."id" != 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 9 [["closed_at", nil], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:41:47 UTC +00:00]]  (5.5ms) commit transaction  (14.5ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.0ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.0ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.4ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.1ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.3ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.7ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.2ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.6ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.5ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.8ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.2ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (6.0ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.8ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.2ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.9ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00]]  (12.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00]]  (5.3ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0001_wont get new unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (1.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0003_wont create unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0005_wont create if double posting ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0006_wont edit unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0008_wont update unless authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_wont delete unless authorized and not deleted ----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["editor_id", 3], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["editor_id", 3], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_wont undelete unless authorized and deleted --------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["editor_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0014_wont upvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 23ms (ActiveRecord: 1.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0016_wont downvote if not authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::CommentsController: test_0018_wont unvote if not authorized ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Commontator::CommentsController: test_0020_wont send mail if recipients empty -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (1.8ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_wont subscribe unless authorized --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_wont unsubscribe unless authorized ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0004_must destroy if authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.3ms) Sent mail to Undisclosed Recipients (3.6ms) Date: Thu, 14 Nov 2013 21:42:39 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <5285982f7d050_10b8d87e809965d@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::ThreadsController: test_0001_wont show unless authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_wont close unless authorized and open -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_wont reopen unless authorized and closed ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (27.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 8 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["creator_id", 8], ["creator_type", "DummyUser"], ["thread_id", 4], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (5.2ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 4]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 4]] SQL (0.5ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 4 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["closer_id", 8], ["closer_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]]  (5.0ms) commit transaction Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 4]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 4], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 5]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (4.2ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."id" != 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 6 [["closed_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["closer_id", 9], ["closer_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."id" != 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 6 [["closed_at", nil], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (5.5ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (4.8ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (3.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 10]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 11]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (5.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (5.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (4.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (3.2ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 1], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (3.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 7 [["unread", 1], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (3.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 2], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 0], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 15 AND "commontator_comments"."thread_id" = 10) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["creator_id", 15], ["creator_type", "DummyUser"], ["thread_id", 10], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (5.9ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 15 AND "commontator_comments"."thread_id" = 10) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00], ["creator_id", 15], ["creator_type", "DummyUser"], ["thread_id", 10], ["updated_at", Fri, 15 Nov 2013 03:42:39 UTC +00:00]]  (5.6ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 10]]  (14.9ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (4.9ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.7ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.1ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.2ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.4ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.5ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.1ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.5ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.1ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.7ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.2ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.3ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.6ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.8ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.3ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (13.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (12.5ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.3ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (1.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["editor_id", 3], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["editor_id", 3], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["editor_id", 2], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 24ms (ActiveRecord: 1.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Fri, 15 Nov 2013 03:45:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (1.4ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.3ms) Sent mail to Undisclosed Recipients (3.6ms) Date: Thu, 14 Nov 2013 21:45:58 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <528598f63d712_110b907e78317ea@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (28.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (3.6ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (3.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (5.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 3]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 9 AND "commontator_comments"."thread_id" = 5) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["creator_id", 9], ["creator_type", "DummyUser"], ["thread_id", 5], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 9 AND "commontator_comments"."thread_id" = 5) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["creator_id", 9], ["creator_type", "DummyUser"], ["thread_id", 5], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (5.2ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 5]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 10]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 11]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 1], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 5 [["unread", 1], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 2], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 0], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (3.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 12]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 15 AND "commontator_comments"."thread_id" = 9) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["creator_id", 15], ["creator_type", "DummyUser"], ["thread_id", 9], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]]  (5.1ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 9]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 9]] SQL (0.4ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 9 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["closer_id", 15], ["closer_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:45:58 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]]  (4.8ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 9]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 9]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 9], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 10]]  (27.8ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.0ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.7ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.3ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.2ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.1ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.4ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.8ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.5ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.3ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.7ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.2ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.6ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.6ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.8ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.2ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (12.5ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 20ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.3ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.9ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["editor_id", 3], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["editor_id", 3], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["editor_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 24ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 23ms (ActiveRecord: 1.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (1.4ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.3ms) Sent mail to Undisclosed Recipients (3.6ms) Date: Thu, 14 Nov 2013 21:49:45 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <528599d952b41_114c723e7c557ce@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (28.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 6 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["creator_id", 6], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 6 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["creator_id", 6], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (4.3ms) commit transaction Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 3]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (3.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 8]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 1], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (3.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 3 [["unread", 1], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (3.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 2], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 0], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (5.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 10]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 11]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (5.2ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."id" != 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 7 [["closed_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["closer_id", 12], ["closer_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."id" != 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 7 [["closed_at", nil], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (3.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 13 AND "commontator_comments"."thread_id" = 8) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["creator_id", 13], ["creator_type", "DummyUser"], ["thread_id", 8], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (4.8ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 8]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 8]] SQL (0.2ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 8 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["closer_id", 13], ["closer_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 8]]  (4.1ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 8]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 8]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 8], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 9]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (3.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (4.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (3.4ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 15) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00], ["subscriber_id", 15], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Fri, 15 Nov 2013 03:49:45 UTC +00:00]]  (3.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 10]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 15]]  (13.8ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.2ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (4.9ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (4.8ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.2ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.1ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.6ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.8ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.3ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.3ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.5ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.9ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.6ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.7ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.8ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.2ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (6.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (3.6ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (3.4ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (3.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (12.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (5.7ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 20ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.3ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.9ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:50:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["editor_id", 3], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["editor_id", 3], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["editor_id", 2], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 25ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 24ms (ActiveRecord: 1.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (1.5ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.3ms) Sent mail to Undisclosed Recipients (3.6ms) Date: Thu, 14 Nov 2013 21:50:04 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <528599ec6b36e_11541143e845168e@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (26.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (3.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (3.6ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (3.9ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (7.4ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 3]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 3]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (4.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 5]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 9]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 10]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 1], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (3.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 5 [["unread", 1], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (4.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 2], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 0], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (4.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 11]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 12]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 13 AND "commontator_comments"."thread_id" = 7) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["creator_id", 13], ["creator_type", "DummyUser"], ["thread_id", 7], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (5.0ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 7]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 7]] SQL (0.4ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 7 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["closer_id", 13], ["closer_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 7]]  (4.8ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 7]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 7]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 7], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 8]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (5.3ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."id" != 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 9 [["closed_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["closer_id", 14], ["closer_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."id" != 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 9 [["closed_at", nil], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (3.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (5.1ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 15 AND "commontator_comments"."thread_id" = 10) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["creator_id", 15], ["creator_type", "DummyUser"], ["thread_id", 10], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 15 AND "commontator_comments"."thread_id" = 10) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00], ["creator_id", 15], ["creator_type", "DummyUser"], ["thread_id", 10], ["updated_at", Fri, 15 Nov 2013 03:50:04 UTC +00:00]]  (5.1ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 10]]  (12.3ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.5ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.0ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.5ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.2ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.1ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.4ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.7ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.4ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.2ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.7ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.4ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.2ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.6ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.8ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.5ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (19.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (4.7ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 20ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.3ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (1.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["editor_id", 3], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["editor_id", 3], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["editor_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 25ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 23ms (ActiveRecord: 1.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (1.4ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.3ms) Sent mail to Undisclosed Recipients (3.7ms) Date: Thu, 14 Nov 2013 21:51:15 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <52859a33b1b9d_115cea1e7449461@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (24.8ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (3.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 3]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["thread_id", 4], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["thread_id", 4], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (4.1ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 4]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 6]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (3.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:15 UTC +00:00]]  (5.6ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:16 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Fri, 15 Nov 2013 03:51:16 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:16 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:16 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:16 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Fri, 15 Nov 2013 03:51:16 UTC +00:00]]  (3.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:16 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:16 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:16 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:16 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:16 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:16 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:16 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:16 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:16 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:16 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:16 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Fri, 15 Nov 2013 03:51:16 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:16 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:16 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:16 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Fri, 15 Nov 2013 03:51:16 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 8]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 1], ["updated_at", Fri, 15 Nov 2013 03:51:16 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 7 [["unread", 1], ["updated_at", Fri, 15 Nov 2013 03:51:16 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 2], ["updated_at", Fri, 15 Nov 2013 03:51:16 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 0], ["updated_at", Fri, 15 Nov 2013 03:51:16 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:16 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:16 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:16 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:16 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:16 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:16 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 15 AND "commontator_comments"."thread_id" = 9) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:16 UTC +00:00], ["creator_id", 15], ["creator_type", "DummyUser"], ["thread_id", 9], ["updated_at", Fri, 15 Nov 2013 03:51:16 UTC +00:00]]  (5.1ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 9]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 9]] SQL (0.4ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 9 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Fri, 15 Nov 2013 03:51:16 UTC +00:00], ["closer_id", 15], ["closer_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:51:16 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:16 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:16 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]]  (4.5ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 9]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 9]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 9], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 10]]  (14.6ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.3ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.3ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.5ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.5ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.9ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (6.0ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.1ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.3ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.7ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.6ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (4.8ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.1ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.3ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.2ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.2ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.2ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (11.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 20ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.3ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (1.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["editor_id", 3], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["editor_id", 3], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["editor_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 24ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 23ms (ActiveRecord: 1.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (1.6ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.3ms) Sent mail to Undisclosed Recipients (3.6ms) Date: Thu, 14 Nov 2013 21:51:42 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <52859a4ec1e31_1165a2be8042310@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (23.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (3.7ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (5.7ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 2]]  (0.0ms) begin transaction Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] SQL (0.2ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (5.1ms) commit transaction Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 3]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (4.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (5.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (3.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (3.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (4.5ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:42 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00]]  (5.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 8]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 1], ["updated_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 3 [["unread", 1], ["updated_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 2], ["updated_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 0], ["updated_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00]]  (5.4ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 9 AND "commontator_comments"."thread_id" = 6) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00], ["creator_id", 9], ["creator_type", "DummyUser"], ["thread_id", 6], ["updated_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 9 AND "commontator_comments"."thread_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00], ["creator_id", 9], ["creator_type", "DummyUser"], ["thread_id", 6], ["updated_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00]]  (4.3ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 6]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 10]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 11]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 8]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 12]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 8]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00]]  (5.3ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."id" != 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 9 [["closed_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00], ["closer_id", 14], ["closer_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00]]  (4.4ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."id" != 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 9 [["closed_at", nil], ["updated_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:51:43 UTC +00:00]]  (4.6ms) commit transaction  (12.6ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (4.9ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.3ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.1ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.5ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.5ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.5ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.2ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.2ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.7ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.8ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.2ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.5ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (6.0ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.2ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (12.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (4.8ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 20ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.3ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (1.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["editor_id", 3], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["editor_id", 3], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["editor_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 23ms (ActiveRecord: 1.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (1.5ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 31ms (ActiveRecord: 2.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (24.1ms) Sent mail to Undisclosed Recipients (3.5ms) Date: Thu, 14 Nov 2013 21:54:42 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <52859b023aaa_1191f53e8029583@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (26.8ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (4.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 6 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["creator_id", 6], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 6 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["creator_id", 6], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (5.3ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 3]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (3.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 8]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 1], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 3 [["unread", 1], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 2], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (3.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 0], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (5.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 10]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 11]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 7) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["creator_id", 12], ["creator_type", "DummyUser"], ["thread_id", 7], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (5.2ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 7]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 7]] SQL (0.4ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 7 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["closer_id", 12], ["closer_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 7]]  (4.6ms) commit transaction Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 7]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 7]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 7], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 8]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (5.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (3.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."id" != 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 10 [["closed_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00], ["closer_id", 15], ["closer_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (3.7ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."id" != 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 10 [["closed_at", nil], ["updated_at", Fri, 15 Nov 2013 03:54:42 UTC +00:00]]  (3.3ms) commit transaction  (12.8ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.2ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.3ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.2ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.2ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.0ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.3ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.5ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.4ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.0ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.1ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.5ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.1ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.2ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.4ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.4ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.6ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.0ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.1ms) begin transaction SQL (1.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (14.4ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (5.2ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.3ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.9ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["editor_id", 3], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["editor_id", 3], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["editor_id", 3], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["editor_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 23ms (ActiveRecord: 1.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (1.8ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 11ms (ActiveRecord: 2.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (21.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (1.8ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to Undisclosed Recipients (3.5ms) Date: Thu, 14 Nov 2013 21:55:27 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <52859b2fd97_119d10cde7827627@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (26.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (4.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (3.4ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (4.8ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 3]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 3]] SQL (0.2ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 3 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["closer_id", 4], ["closer_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 3]]  (6.7ms) commit transaction Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 3]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 3]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 3], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 4]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (4.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 5 [["closed_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["closer_id", 5], ["closer_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 5 [["closed_at", nil], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (3.8ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (3.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (4.8ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 1], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (3.9ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 3 [["unread", 1], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (3.9ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 2], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 0], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (5.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 8]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 9]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (4.9ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 7]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 14 AND "commontator_comments"."thread_id" = 9) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["creator_id", 14], ["creator_type", "DummyUser"], ["thread_id", 9], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (5.3ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 14 AND "commontator_comments"."thread_id" = 9) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["creator_id", 14], ["creator_type", "DummyUser"], ["thread_id", 9], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (5.1ms) commit transaction Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 9]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (4.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:55:27 UTC +00:00]]  (4.2ms) commit transaction  (13.8ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (4.8ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (4.7ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (4.7ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (4.6ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (4.2ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.0ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.0ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (4.8ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.0ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.7ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.3ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.7ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.7ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.1ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (14.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (5.6ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 20ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.3ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.9ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["editor_id", 3], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["editor_id", 3], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["editor_id", 3], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["editor_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (1.5ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (1.4ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to Undisclosed Recipients (3.5ms) Date: Thu, 14 Nov 2013 21:56:30 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <52859b6ee3c45_11ac1081e74567a@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to visit this thread.

 (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]]  (27.9ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]]  (3.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]]  (3.8ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]]  (3.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]]  (5.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 6]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 1], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 3 [["unread", 1], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 2], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 0], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 8]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]]  (5.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]]  (5.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 7]]  (4.4ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]]  (4.2ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]]  (4.8ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."id" != 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 7 [["closed_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["closer_id", 13], ["closer_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]]  (3.8ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."id" != 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 7 [["closed_at", nil], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]]  (4.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]]  (4.2ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]]  (3.7ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 14 AND "commontator_comments"."thread_id" = 8) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["creator_id", 14], ["creator_type", "DummyUser"], ["thread_id", 8], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 14 AND "commontator_comments"."thread_id" = 8) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["creator_id", 14], ["creator_type", "DummyUser"], ["thread_id", 8], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]]  (4.1ms) commit transaction Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 8]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]]  (7.2ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 15 AND "commontator_comments"."thread_id" = 9) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["creator_id", 15], ["creator_type", "DummyUser"], ["thread_id", 9], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]]  (5.0ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 9]]  (0.0ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 9]] SQL (0.2ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 9 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["closer_id", 15], ["closer_type", "DummyUser"], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00], ["updated_at", Fri, 15 Nov 2013 03:56:31 UTC +00:00]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]]  (5.3ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 9]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 9]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 9], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 10]]  (12.2ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.2ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.0ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.2ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.2ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.2ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.7ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.9ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.3ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.6ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.3ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (6.2ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.4ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.2ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.3ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (6.0ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (6.2ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.4ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.5ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00]]  (10.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00]]  (5.7ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.3ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.9ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (2.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (1.6ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (2.0ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (12.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (1.4ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 2.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (34.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (4.6ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (3.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 3]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (4.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (5.6ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["thread_id", 4], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (5.4ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 4]]  (0.0ms) begin transaction Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 4]] SQL (0.2ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 4 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["closer_id", 5], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]]  (5.1ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 4]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 4], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 5]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (6.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (5.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 6]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (5.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (5.4ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (5.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 7]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 8]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 9]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (5.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 02:07:25 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:26 UTC +00:00]]  (5.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 7]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:26 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:26 UTC +00:00]]  (4.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:26 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:26 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 14 AND "commontator_comments"."thread_id" = 9) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:07:26 UTC +00:00], ["creator_id", 14], ["creator_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 02:07:26 UTC +00:00]]  (5.2ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 14 AND "commontator_comments"."thread_id" = 9) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:07:26 UTC +00:00], ["creator_id", 14], ["creator_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 02:07:26 UTC +00:00]]  (5.5ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 9]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:26 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:07:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:26 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:07:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:07:26 UTC +00:00]]  (4.9ms) commit transaction  (11.8ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.3ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.4ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.6ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (11.8ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.3ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.1ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (4.7ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (4.6ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (4.7ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.8ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (4.7ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (4.7ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.5ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.4ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.6ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (4.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.9ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:34 UTC +00:00]]  (9.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (7.4ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.9ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.5ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (1.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (1.5ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (27.9ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (4.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (4.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (4.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 3]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (4.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (3.8ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (5.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (10.3ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (3.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 9]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 10]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:35 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:36 UTC +00:00]]  (5.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:09:36 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Sat, 16 Nov 2013 02:09:36 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:36 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:09:36 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Sat, 16 Nov 2013 02:09:36 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 11]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 12]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:36 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:36 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."id" != 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 7 [["closed_at", Sat, 16 Nov 2013 02:09:36 UTC +00:00], ["closer_id", 13], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:09:36 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."id" != 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 7 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 02:09:36 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:36 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:36 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 14 AND "commontator_comments"."thread_id" = 8) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:09:36 UTC +00:00], ["creator_id", 14], ["creator_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 02:09:36 UTC +00:00]]  (5.3ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 8]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 8]] SQL (0.4ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 8 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Sat, 16 Nov 2013 02:09:36 UTC +00:00], ["closer_id", 14], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:09:36 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:36 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 8]]  (4.8ms) commit transaction Commontator::Comment Exists (19.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 8]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 8]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 8], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 9]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:36 UTC +00:00]]  (5.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:09:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:09:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:09:36 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 15 AND "commontator_comments"."thread_id" = 10) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:09:36 UTC +00:00], ["creator_id", 15], ["creator_type", "DummyUser"], ["thread_id", 10], ["updated_at", Sat, 16 Nov 2013 02:09:36 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 15 AND "commontator_comments"."thread_id" = 10) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:09:36 UTC +00:00], ["creator_id", 15], ["creator_type", "DummyUser"], ["thread_id", 10], ["updated_at", Sat, 16 Nov 2013 02:09:36 UTC +00:00]]  (4.6ms) commit transaction Commontator::Comment Load (0.3ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 10]]  (17.6ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (4.9ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (4.9ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.0ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.1ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.1ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.6ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.5ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.2ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.1ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (6.2ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.1ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.1ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.9ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (6.0ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.4ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.5ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (12.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (5.8ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 23ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (1.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (2.3ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 02:14:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (2.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.6ms) Sent mail to Undisclosed Recipients (3.6ms) Date: Fri, 15 Nov 2013 20:14:22 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <5286d4fe1fed0_18676efe74195d3@ubuntu.mail> Subject: Anonymous posted a dummy comment on dummy model 2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on dummy model 2:

Something

Click here to view all comments on dummy model 2.

 (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (35.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (5.3ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (5.3ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (5.3ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 3]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 5) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["thread_id", 5], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (5.2ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 5]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 5]] SQL (0.3ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 5 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["closer_id", 5], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 5]]  (5.4ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 5]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 5]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 5], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 6]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (22.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (5.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (4.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (3.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (3.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (3.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 12]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 5 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (2.7ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (5.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 15) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00], ["subscriber_id", 15], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Sat, 16 Nov 2013 02:14:22 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 10]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 10]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 15]]  (24.3ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (4.4ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (4.0ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (4.0ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (4.0ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (3.9ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (4.0ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (4.2ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (3.9ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (3.9ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (3.9ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (4.3ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (4.0ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (4.2ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (4.2ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (4.3ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (4.4ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (4.0ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (4.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (4.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (3.6ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (3.4ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (3.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (3.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (18.2ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (3.6ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 24ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (1.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.1ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 5ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (1.9ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (7.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (2.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.5ms) Sent mail to Undisclosed Recipients (3.6ms) Date: Fri, 15 Nov 2013 20:58:43 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <5286df63d61bd_1c1c57be803593c@ubuntu.mail> Subject: Anonymous posted a dummy comment on DummyModel #2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on DummyModel #2:

Something

Click here to view all comments on DummyModel #2.

 (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 500 Internal Server Error in 3ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::ThreadsHelper: test_0002_must print commontable id ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:43 UTC +00:00]]  (26.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00]]  (3.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00]]  (3.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (1.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00]]  (3.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00]]  (3.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00]]  (3.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00]]  (3.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00]]  (3.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00]]  (3.7ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00]]  (3.9ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 3]]  (0.0ms) begin transaction Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 3]] SQL (0.2ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 3 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00], ["closer_id", 4], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 3]]  (3.9ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 3]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 3]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 3], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 4]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00]]  (3.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00]]  (3.8ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 5 [["closed_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00], ["closer_id", 5], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00]]  (3.4ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 5 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00]]  (3.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00]]  (3.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00]]  (3.7ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 6 AND "commontator_comments"."thread_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00], ["creator_id", 6], ["creator_type", "DummyUser"], ["thread_id", 6], ["updated_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00]]  (3.9ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 6 AND "commontator_comments"."thread_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00], ["creator_id", 6], ["creator_type", "DummyUser"], ["thread_id", 6], ["updated_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00]]  (3.8ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 6]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00]]  (3.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00]]  (3.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00]]  (3.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 7]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 7]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 8]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00]]  (3.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00]]  (3.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00]]  (3.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00]]  (3.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00]]  (3.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (3.5ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00]]  (3.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00]]  (3.4ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00]]  (3.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00]]  (3.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00]]  (3.4ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00]]  (3.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00]]  (3.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:58:44 UTC +00:00]]  (3.7ms) commit transaction  (22.4ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.2ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.0ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.5ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.0ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.3ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.4ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.1ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.1ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.4ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.8ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.4ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.3ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.3ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (6.3ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.7ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.3ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:17 UTC +00:00]]  (12.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (5.1ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 23ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (1.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (23.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (2.3ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (21.9ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (2.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.5ms) Sent mail to Undisclosed Recipients (3.4ms) Date: Fri, 15 Nov 2013 20:59:18 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <5286df86b9243_1c31987e84427c5@ubuntu.mail> Subject: Anonymous posted a dummy comment on DummyModel #2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on DummyModel #2:

Something

Click here to view all comments on DummyModel #2.

 (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (27.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (5.3ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (5.0ms) commit transaction Commontator::Comment Load (0.3ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (5.3ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 3]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 3]] SQL (0.4ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 3 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["closer_id", 3], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 3]]  (3.5ms) commit transaction Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 3]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 3]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 3], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 4]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (3.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (3.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 5]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (3.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:18 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00]]  (4.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00]]  (3.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00]]  (3.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00]]  (3.6ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 8]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 11]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 8]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 12]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 7 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00]]  (7.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.2ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."id" != 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 10 [["closed_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00], ["closer_id", 15], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."id" != 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 10 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 02:59:19 UTC +00:00]]  (4.5ms) commit transaction  (13.2ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.4ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.3ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.6ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.1ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.1ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.4ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.5ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.1ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.5ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.3ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (13.2ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.3ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.5ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.6ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.7ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.2ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.6ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (11.9ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (5.0ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.9ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (22.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (2.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (21.7ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (1.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to Undisclosed Recipients (3.5ms) Date: Fri, 15 Nov 2013 20:59:36 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <5286df98228b_1c3cae1e7497632@ubuntu.mail> Subject: Anonymous posted a dummy comment on DummyModel #2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on DummyModel #2:

Something

Click here to view all comments on DummyModel #2.

 (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (28.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (4.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (5.3ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (3.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 3]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 5]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (4.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (4.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (4.4ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (4.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (4.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (4.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (3.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (6.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 6]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 11]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 12]] SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (4.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 7 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (3.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (3.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (6.0ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."id" != 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 7 [["closed_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["closer_id", 13], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."id" != 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.4ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 7 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (4.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 14 AND "commontator_comments"."thread_id" = 8) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["creator_id", 14], ["creator_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (4.0ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 14 AND "commontator_comments"."thread_id" = 8) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["creator_id", 14], ["creator_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (4.6ms) commit transaction Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 8]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (28.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (4.6ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 15 AND "commontator_comments"."thread_id" = 9) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["creator_id", 15], ["creator_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]]  (4.8ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 9]]  (0.0ms) begin transaction Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 9]] SQL (0.2ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 9 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["closer_id", 15], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 02:59:36 UTC +00:00]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]]  (4.5ms) commit transaction Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 9]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 9]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 9], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 10]]  (14.4ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (4.9ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.8ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.4ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.2ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.3ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.5ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.1ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.5ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.1ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.9ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.4ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.5ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.7ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.8ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.2ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (13.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (4.2ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.4ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (1.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:27 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (1.4ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to Undisclosed Recipients (3.4ms) Date: Fri, 15 Nov 2013 21:01:28 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <5286e008e85e_1c5e9dbe806247e@ubuntu.mail> Subject: Anonymous posted a dummy comment on DummyModel #2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on DummyModel #2:

Something

Click here to view all comments on DummyModel #2.

 (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (23.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (4.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (4.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 3]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (3.9ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 3 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (4.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (4.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 6]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (4.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 8 AND "commontator_comments"."thread_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["creator_id", 8], ["creator_type", "DummyUser"], ["thread_id", 5], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 8 AND "commontator_comments"."thread_id" = 5) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["creator_id", 8], ["creator_type", "DummyUser"], ["thread_id", 5], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (4.8ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 5]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (6.8ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 9 AND "commontator_comments"."thread_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["creator_id", 9], ["creator_type", "DummyUser"], ["thread_id", 6], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (5.0ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 6]]  (0.0ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 6]] SQL (0.3ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 6 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["closer_id", 9], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 6]]  (6.9ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 6]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 6]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 6], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 7]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (5.6ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."id" != 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.4ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 8 [["closed_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["closer_id", 10], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."id" != 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 8 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (4.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (3.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (3.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (5.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (7.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 7]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:28 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (14.1ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (4.9ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.0ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.4ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.1ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.2ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.4ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.6ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.2ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.7ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.8ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.2ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.5ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (6.0ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (6.1ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.2ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (11.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (5.1ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (1.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (22.9ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (2.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (2.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to Undisclosed Recipients (3.5ms) Date: Fri, 15 Nov 2013 21:01:58 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <5286e026e6d55_1c6889fe7c444cd@ubuntu.mail> Subject: Anonymous posted a dummy comment on DummyModel #2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on DummyModel #2:

Something

Click here to view all comments on DummyModel #2.

 (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]]  (27.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]]  (3.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]]  (5.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]]  (5.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 3]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 3]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]]  (5.2ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 4 [["closed_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["closer_id", 5], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 4 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]]  (5.7ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 6 AND "commontator_comments"."thread_id" = 5) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["creator_id", 6], ["creator_type", "DummyUser"], ["thread_id", 5], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]]  (5.2ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 5]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 5]] SQL (0.4ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 5 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["closer_id", 6], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 5]]  (4.5ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 5]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 5]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 5], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 6]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 8]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 3 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]]  (5.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]]  (3.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]]  (5.4ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 9 AND "commontator_comments"."thread_id" = 8) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["creator_id", 9], ["creator_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]]  (5.6ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 9 AND "commontator_comments"."thread_id" = 8) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["creator_id", 9], ["creator_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]]  (5.9ms) commit transaction Commontator::Comment Load (0.3ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 8]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 10]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 11]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]]  (8.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 7]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:01:59 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (11.7ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (4.4ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (4.7ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.2ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.3ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.5ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.6ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.6ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.6ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.3ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (6.0ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.4ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.4ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.7ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (6.0ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (6.2ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.3ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.5ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.1ms) begin transaction SQL (1.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (11.3ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (1.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (22.9ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:21 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (2.2ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (2.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.5ms) Sent mail to Undisclosed Recipients (3.5ms) Date: Fri, 15 Nov 2013 21:02:22 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <5286e03e449a7_1c7363fe84698f@ubuntu.mail> Subject: Anonymous posted a dummy comment on DummyModel #2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on DummyModel #2:

Something

Click here to view all comments on DummyModel #2.

 (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (31.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (5.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."id" != 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 3 [["closed_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["closer_id", 4], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."id" != 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 3 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 5]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 6]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (3.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (5.0ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 7 AND "commontator_comments"."thread_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["creator_id", 7], ["creator_type", "DummyUser"], ["thread_id", 5], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (5.7ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 5]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 5]] SQL (0.3ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 5 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["closer_id", 7], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 5]]  (5.4ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 5]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 5]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 5], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 6]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (5.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (5.3ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 8 AND "commontator_comments"."thread_id" = 7) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["creator_id", 8], ["creator_type", "DummyUser"], ["thread_id", 7], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 8 AND "commontator_comments"."thread_id" = 7) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["creator_id", 8], ["creator_type", "DummyUser"], ["thread_id", 7], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (5.2ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 7]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (5.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (4.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (5.3ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (5.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 15) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00], ["subscriber_id", 15], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (5.3ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (2.4ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 10]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 15]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (5.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 7 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (4.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:02:22 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (13.1ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (4.8ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.4ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.3ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.3ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.3ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.4ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.6ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.2ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.3ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.9ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (4.9ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (4.9ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.0ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.7ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.7ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.3ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.7ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]]  (13.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]]  (5.4ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (1.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (22.0ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (1.5ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (1.5ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to Undisclosed Recipients (3.4ms) Date: Fri, 15 Nov 2013 21:05:31 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <5286e0fb85c34_1cb5bb9e783891e@ubuntu.mail> Subject: Anonymous posted a dummy comment on DummyModel #2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on DummyModel #2:

Something

Click here to view all comments on DummyModel #2.

 (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (31.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (5.4ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 2]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] SQL (0.4ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (5.7ms) commit transaction Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 3]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (5.4ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 7 AND "commontator_comments"."thread_id" = 5) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["creator_id", 7], ["creator_type", "DummyUser"], ["thread_id", 5], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (5.4ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 7 AND "commontator_comments"."thread_id" = 5) LIMIT 1 SQL (0.5ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["creator_id", 7], ["creator_type", "DummyUser"], ["thread_id", 5], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (5.6ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 5]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."id" != 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 6 [["closed_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["closer_id", 8], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."id" != 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 6 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (6.4ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (4.9ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 8]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 10]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 11]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (5.3ms) commit transaction Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 9]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 12]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 9]] DummyUser Load (0.2ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (5.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (5.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:05:31 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (2.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 15) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:05:32 UTC +00:00], ["subscriber_id", 15], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Sat, 16 Nov 2013 03:05:32 UTC +00:00]]  (7.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 10]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 15]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:05:32 UTC +00:00]]  (4.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 7 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:05:32 UTC +00:00]]  (3.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:05:32 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:05:32 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (13.7ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (4.9ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.2ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.3ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.4ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.1ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.6ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.6ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.6ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.3ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (6.1ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.3ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.3ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.8ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.7ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.7ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.3ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (16.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (21.5ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (1.5ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (1.5ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to Undisclosed Recipients (3.6ms) Date: Fri, 15 Nov 2013 21:06:48 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <5286e1486fecf_1cca593e7c807f1@ubuntu.mail> Subject: Anonymous posted a dummy comment on DummyModel #2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on DummyModel #2:

Something

Click here to view all comments on DummyModel #2.

 (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (28.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 6 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["creator_id", 6], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 6 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["creator_id", 6], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (5.3ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 3]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 8]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 3 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (3.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (5.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 9]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 5]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 10]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (5.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (5.4ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 11 AND "commontator_comments"."thread_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["creator_id", 11], ["creator_type", "DummyUser"], ["thread_id", 6], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (4.9ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 6]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 6]] SQL (0.3ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 6 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["closer_id", 11], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 6]]  (4.9ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 6]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 6]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 6], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 7]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (4.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (7.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 8]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 12]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (3.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (4.2ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."id" != 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 10 [["closed_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00], ["closer_id", 15], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (3.8ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."id" != 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 10 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:06:48 UTC +00:00]]  (4.2ms) commit transaction  (14.7ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.3ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.6ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.1ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.1ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.9ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.7ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.5ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.2ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.9ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.1ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.2ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.6ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.9ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.8ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.6ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.6ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (11.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (5.1ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (21.6ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (1.5ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:20:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (1.4ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to Undisclosed Recipients (3.4ms) Date: Fri, 15 Nov 2013 21:20:22 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <5286e4761fffd_1d9f107fe8080916@ubuntu.mail> Subject: Anonymous posted a dummy comment on DummyModel #2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on DummyModel #2:

Something

Click here to view all comments on DummyModel #2.

 (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (26.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 3]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 5]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 3 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (4.8ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 7 AND "commontator_comments"."thread_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["creator_id", 7], ["creator_type", "DummyUser"], ["thread_id", 5], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (3.4ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 5]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 5]] SQL (0.4ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 5 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["closer_id", 7], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 5]]  (4.5ms) commit transaction Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 5]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 5]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 5], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 6]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (5.5ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 8 AND "commontator_comments"."thread_id" = 7) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["creator_id", 8], ["creator_type", "DummyUser"], ["thread_id", 7], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (5.8ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 8 AND "commontator_comments"."thread_id" = 7) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["creator_id", 8], ["creator_type", "DummyUser"], ["thread_id", 7], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (4.1ms) commit transaction Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 7]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (3.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 8]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 9]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 8]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 10]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (3.8ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (4.8ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (6.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 7]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (4.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (4.4ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."id" != 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 10 [["closed_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00], ["closer_id", 15], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (3.9ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."id" != 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 10 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:20:22 UTC +00:00]]  (4.0ms) commit transaction  (14.7ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.2ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.4ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.3ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.2ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.1ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.3ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.4ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.3ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.1ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.1ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.6ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (4.8ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (4.6ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.2ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.3ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.0ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (10.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (5.2ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (1.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.4ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (1.6ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (20.9ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (1.4ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to Undisclosed Recipients (3.5ms) Date: Fri, 15 Nov 2013 21:32:04 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <5286e734d243d_1e6df73e7415785@ubuntu.mail> Subject: Anonymous posted a dummy comment on DummyModel #2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on DummyModel #2:

Something

Click here to view all comments on DummyModel #2.

 (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (22.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (3.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (3.9ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (3.5ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:04 UTC +00:00]]  (4.8ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00]]  (3.9ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00]]  (3.6ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["thread_id", 4], ["updated_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00]]  (4.8ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 4]]  (0.0ms) begin transaction Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 4]] SQL (0.2ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 4 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00], ["closer_id", 5], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]]  (4.6ms) commit transaction Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 4]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 4], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 5]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00]]  (4.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 6]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 6]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00]]  (4.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 3 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00]]  (5.1ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."id" != 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 7 [["closed_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00], ["closer_id", 8], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00]]  (3.3ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."id" != 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 7 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00]]  (3.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00]]  (3.8ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00]]  (4.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00]]  (3.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (4.1ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00]]  (4.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (2.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00]]  (5.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00]]  (4.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00]]  (4.3ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 15 AND "commontator_comments"."thread_id" = 10) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00], ["creator_id", 15], ["creator_type", "DummyUser"], ["thread_id", 10], ["updated_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00]]  (4.7ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 15 AND "commontator_comments"."thread_id" = 10) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00], ["creator_id", 15], ["creator_type", "DummyUser"], ["thread_id", 10], ["updated_at", Sat, 16 Nov 2013 03:32:05 UTC +00:00]]  (4.8ms) commit transaction Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 10]]  (15.0ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (4.9ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.3ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.1ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.1ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.3ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.5ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.3ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.3ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.9ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.2ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.6ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.6ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (6.1ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.1ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.6ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (12.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (5.2ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 500 Internal Server Error in 1ms  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 20ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to Undisclosed Recipients (3.4ms) Date: Fri, 15 Nov 2013 21:33:00 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <5286e76cd1e38_1e8ce5be743592@ubuntu.mail> Subject: Anonymous posted a dummy comment on DummyModel #2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on DummyModel #2:

Something

Click here to view all comments on DummyModel #2.

 (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (19.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.3ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]]  (5.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:00 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00]]  (7.1ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 3]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 5]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 3 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 10 AND "commontator_comments"."thread_id" = 5) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00], ["creator_id", 10], ["creator_type", "DummyUser"], ["thread_id", 5], ["updated_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00]]  (5.4ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 10 AND "commontator_comments"."thread_id" = 5) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00], ["creator_id", 10], ["creator_type", "DummyUser"], ["thread_id", 5], ["updated_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00]]  (5.7ms) commit transaction Commontator::Comment Load (0.3ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 5]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00]]  (5.3ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00]]  (5.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 11]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 12]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00]]  (5.2ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."id" != 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 8 [["closed_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00], ["closer_id", 14], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00]]  (4.1ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."id" != 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 8 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00]]  (10.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00]]  (5.5ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 15 AND "commontator_comments"."thread_id" = 9) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00], ["creator_id", 15], ["creator_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00]]  (4.3ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 9]]  (0.0ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 9]] SQL (0.2ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 9 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00], ["closer_id", 15], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:01 UTC +00:00]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]]  (4.1ms) commit transaction Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 9]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 9]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 9], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 10]]  (14.1ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.2ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.5ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.2ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.2ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.2ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.4ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.6ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.5ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.3ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (6.0ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.4ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.4ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.8ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (6.0ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (6.0ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.2ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (14.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (5.4ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 500 Internal Server Error in 1ms  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 20ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to Undisclosed Recipients (3.5ms) Date: Fri, 15 Nov 2013 21:33:20 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <5286e780e42e6_1e99969e84856d7@ubuntu.mail> Subject: Anonymous posted a dummy comment on DummyModel #2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on DummyModel #2:

Something

Click here to view all comments on DummyModel #2.

 (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 20ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]]  (14.8ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]]  (5.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]]  (5.8ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]]  (5.3ms) commit transaction Commontator::Comment Load (0.3ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 3]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]]  (4.9ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 5]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]]  (4.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]]  (4.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]]  (4.8ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."id" != 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 5 [["closed_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00], ["closer_id", 6], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]]  (4.3ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."id" != 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 5 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]]  (4.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]]  (4.3ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 8]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]]  (5.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]]  (5.8ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 9 AND "commontator_comments"."thread_id" = 7) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00], ["creator_id", 9], ["creator_type", "DummyUser"], ["thread_id", 7], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]]  (5.3ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 7]]  (0.1ms) begin transaction Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 7]] SQL (0.4ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 7 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00], ["closer_id", 9], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 7]]  (5.2ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 7]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 7]] Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 7], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 8]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]]  (4.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]]  (3.9ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]]  (3.5ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 10]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 11]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]]  (5.3ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 7]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:21 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (13.2ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (4.9ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.1ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.1ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.4ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.7ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.1ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.1ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.9ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.4ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.3ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.1ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.8ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.9ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.5ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.6ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (14.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (5.0ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (1.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (0.9ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to Undisclosed Recipients (25.1ms) Date: Fri, 15 Nov 2013 21:33:42 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <5286e796ce929_1ea8777e7876766@ubuntu.mail> Subject: Anonymous posted a dummy comment on DummyModel #2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on DummyModel #2:

Something

Click here to view all comments on DummyModel #2.

 (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (16.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (3.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:42 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00]]  (6.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 4 [["closed_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00], ["closer_id", 7], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 4 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00]]  (5.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 8]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 9]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00]]  (5.2ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 10 AND "commontator_comments"."thread_id" = 6) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00], ["creator_id", 10], ["creator_type", "DummyUser"], ["thread_id", 6], ["updated_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00]]  (5.6ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 6]]  (0.0ms) begin transaction Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 6]] SQL (0.2ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 6 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00], ["closer_id", 10], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 6]]  (4.7ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 6]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 6]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 6], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 7]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00]]  (4.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 8]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 11]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 12]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00]]  (3.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00]]  (3.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00]]  (4.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00]]  (4.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 7 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00]]  (4.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00]]  (4.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00]]  (4.8ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 15 AND "commontator_comments"."thread_id" = 10) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00], ["creator_id", 15], ["creator_type", "DummyUser"], ["thread_id", 10], ["updated_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00]]  (5.2ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 15 AND "commontator_comments"."thread_id" = 10) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00], ["creator_id", 15], ["creator_type", "DummyUser"], ["thread_id", 10], ["updated_at", Sat, 16 Nov 2013 03:33:43 UTC +00:00]]  (4.6ms) commit transaction Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 10]]  (13.5ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (4.6ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (4.7ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (4.7ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.0ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.3ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.5ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.8ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.2ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.5ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (6.0ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.3ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.3ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.7ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (6.0ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (6.0ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.2ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (3.7ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (18.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (5.0ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:23 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (1.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to Undisclosed Recipients (25.0ms) Date: Fri, 15 Nov 2013 21:34:24 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <5286e7c0312e4_1eb7781e78357e4@ubuntu.mail> Subject: Anonymous posted a dummy comment on DummyModel #2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on DummyModel #2:

Something

Click here to view all comments on DummyModel #2.

 (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (20.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (3.9ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (4.3ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 2]]  (0.0ms) begin transaction Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] SQL (0.2ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (5.8ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 3]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (5.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (3.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (3.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (3.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 8]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (5.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (5.3ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 7]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 10]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 11]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (3.8ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 5 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (4.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 8) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["creator_id", 12], ["creator_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (5.5ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 8) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["creator_id", 12], ["creator_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (5.3ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 8]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."id" != 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 9 [["closed_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["closer_id", 13], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."id" != 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 9 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (5.6ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 15) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00], ["subscriber_id", 15], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Sat, 16 Nov 2013 03:34:24 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 10]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 15]]  (12.4ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (4.8ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.0ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.7ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.2ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.5ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.5ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.6ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.3ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.1ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.4ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.8ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.1ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.3ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.9ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (6.3ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.2ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (14.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (4.2ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.4ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (1.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.3ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (1.5ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (1.4ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to Undisclosed Recipients (3.5ms) Date: Fri, 15 Nov 2013 21:34:59 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <5286e7e35e0b7_1ec6f9fe84924df@ubuntu.mail> Subject: Anonymous posted a dummy comment on DummyModel #2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on DummyModel #2:

Something

Click here to view all comments on DummyModel #2.

 (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (30.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (5.4ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (5.1ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 3]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 5]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (5.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 3 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (3.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 8 AND "commontator_comments"."thread_id" = 6) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["creator_id", 8], ["creator_type", "DummyUser"], ["thread_id", 6], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (5.4ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 6]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 6]] SQL (0.3ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 6 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["closer_id", 8], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 6]]  (6.0ms) commit transaction Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 6]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 6]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 6], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 7]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (3.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (4.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (3.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (3.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (24.9ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (6.5ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (5.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 9]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 9]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."id" != 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 10 [["closed_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00], ["closer_id", 15], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."id" != 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 10 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:34:59 UTC +00:00]]  (4.8ms) commit transaction  (17.9ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (4.9ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.0ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.3ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.1ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.4ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.4ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.4ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.1ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.1ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.3ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.7ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.2ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.8ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (6.2ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.2ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (3.7ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (12.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.3ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:35:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.3ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (1.6ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (1.3ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to Undisclosed Recipients (3.5ms) Date: Fri, 15 Nov 2013 21:35:26 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <5286e7fe77e6f_1ee47ebe7c54415@ubuntu.mail> Subject: Anonymous posted a dummy comment on DummyModel #2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on DummyModel #2:

Something

Click here to view all comments on DummyModel #2.

 (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (27.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (3.8ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (3.6ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (3.9ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (3.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 3]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (11.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (5.2ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 9 AND "commontator_comments"."thread_id" = 5) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["creator_id", 9], ["creator_type", "DummyUser"], ["thread_id", 5], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (5.4ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 5]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 5]] SQL (0.4ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 5 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["closer_id", 9], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 5]]  (4.5ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 5]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 5]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 5], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 6]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (7.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (5.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (3.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 7]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 10]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 7]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 11]]  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (4.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (4.4ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 8) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["creator_id", 12], ["creator_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 12 AND "commontator_comments"."thread_id" = 8) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["creator_id", 12], ["creator_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (5.6ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 8]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (1.7ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]] SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (5.6ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 7 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (4.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:35:26 UTC +00:00]]  (5.2ms) commit transaction  (13.2ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (4.8ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (4.9ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.1ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.2ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.3ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.4ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.0ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.1ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.3ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.9ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.1ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.2ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.6ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.8ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.1ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (13.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (5.4ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.3ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:36:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.3ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (1.5ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (1.5ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.5ms) Sent mail to Undisclosed Recipients (3.4ms) Date: Fri, 15 Nov 2013 21:36:29 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <5286e83d769a1_1ef2125de78656a3@ubuntu.mail> Subject: Anonymous posted a dummy comment on DummyModel #2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on DummyModel #2:

Something

Click here to view all comments on DummyModel #2.

 (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (32.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (3.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (5.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (5.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (5.6ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (5.8ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (5.4ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 3]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.5ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["thread_id", 4], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (5.5ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 4]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 4]] SQL (0.3ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 4 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["closer_id", 5], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]]  (4.9ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 4]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 4], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 5]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."id" != 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 6 [["closed_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["closer_id", 6], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."id" != 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 6 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (3.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (5.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 8]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 8]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 9]] SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (3.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 3 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (3.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (3.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (4.6ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 10]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 11]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (6.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (4.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 7]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:36:29 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (13.3ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.0ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.3ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.2ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.4ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.3ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.5ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.1ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.2ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (12.3ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (6.1ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (4.6ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (4.5ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (4.5ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.1ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.4ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (4.7ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (4.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (4.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:01 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:01 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:01 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:01 UTC +00:00]]  (12.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:01 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:01 UTC +00:00]]  (5.5ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:01 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:01 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:01 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:01 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:01 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:01 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:01 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:01 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:01 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:01 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:01 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:01 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:01 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:01 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:01 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:01 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Sat, 16 Nov 2013 03:37:01 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:01 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:01 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:01 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:01 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.9ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 13ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.3ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (1.5ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (1.4ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to Undisclosed Recipients (3.5ms) Date: Fri, 15 Nov 2013 21:37:02 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <5286e85ea4f0b_1efb10e1e784893f@ubuntu.mail> Subject: Anonymous posted a dummy comment on DummyModel #2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on DummyModel #2:

Something

Click here to view all comments on DummyModel #2.

 (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (20.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (3.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 3]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["thread_id", 4], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (5.1ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 4]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 4]] SQL (0.4ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 4 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["closer_id", 5], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]]  (4.3ms) commit transaction Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 4]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 4], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 5]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (3.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."id" != 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 6 [["closed_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["closer_id", 6], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (3.7ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."id" != 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 6 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (3.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (3.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (10.6ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (5.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (5.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:02 UTC +00:00]]  (6.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:03 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:03 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:03 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:03 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:03 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:03 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:03 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 03:37:03 UTC +00:00]]  (4.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:03 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:03 UTC +00:00]]  (3.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:03 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 03:37:03 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 8]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 11]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 8]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 12]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:03 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:03 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:03 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:03 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:03 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:03 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 13 AND "commontator_comments"."thread_id" = 9) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:03 UTC +00:00], ["creator_id", 13], ["creator_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 03:37:03 UTC +00:00]]  (7.0ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 13 AND "commontator_comments"."thread_id" = 9) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:03 UTC +00:00], ["creator_id", 13], ["creator_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 03:37:03 UTC +00:00]]  (5.2ms) commit transaction Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 9]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:03 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:03 UTC +00:00]]  (4.2ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:03 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:03 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:03 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:03 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:03 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Sat, 16 Nov 2013 03:37:03 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:03 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:03 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 15) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:03 UTC +00:00], ["subscriber_id", 15], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Sat, 16 Nov 2013 03:37:03 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 10]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 15]]  (19.3ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.4ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.3ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.2ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.3ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.4ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.6ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.2ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.3ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.4ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.9ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.2ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.3ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.6ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (6.0ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.2ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (12.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.3ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (20.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (1.5ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (1.5ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to Undisclosed Recipients (3.5ms) Date: Fri, 15 Nov 2013 21:37:17 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <5286e86d1814c_1f02c45e78415d9@ubuntu.mail> Subject: Anonymous posted a dummy comment on DummyModel #2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on DummyModel #2:

Something

Click here to view all comments on DummyModel #2.

 (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (24.9ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (8.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 8]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 9 AND "commontator_comments"."thread_id" = 5) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["creator_id", 9], ["creator_type", "DummyUser"], ["thread_id", 5], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (5.2ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 5]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 5]] SQL (0.4ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 5 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["closer_id", 9], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 5]]  (4.9ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 5]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 5]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 5], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 6]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (3.8ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (5.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (3.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 7]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 10]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 11]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (3.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 8]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 12]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 7 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (3.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (1.8ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (5.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (4.7ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 14 AND "commontator_comments"."thread_id" = 9) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["creator_id", 14], ["creator_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (5.3ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 14 AND "commontator_comments"."thread_id" = 9) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["creator_id", 14], ["creator_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (4.8ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 9]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:17 UTC +00:00]]  (5.2ms) commit transaction  (16.1ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.3ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.4ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.5ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.3ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.6ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.6ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.9ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.4ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.3ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.6ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (6.1ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.5ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (6.1ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.4ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (6.0ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (6.4ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.3ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (12.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (4.9ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.3ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.9ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (1.4ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (1.8ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to Undisclosed Recipients (3.4ms) Date: Fri, 15 Nov 2013 21:37:30 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <5286e87abc0c6_1f0a971e7c59664@ubuntu.mail> Subject: Anonymous posted a dummy comment on DummyModel #2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on DummyModel #2:

Something

Click here to view all comments on DummyModel #2.

 (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (29.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (4.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (4.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (3.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (4.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (4.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 3]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 3]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 5]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (3.9ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (4.3ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 6 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["creator_id", 6], ["creator_type", "DummyUser"], ["thread_id", 4], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (5.1ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 4]]  (0.0ms) begin transaction Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 4]] SQL (0.2ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 4 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["closer_id", 6], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]]  (4.2ms) commit transaction Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 4]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 4], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 5]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (3.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (4.3ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."id" != 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 6 [["closed_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00], ["closer_id", 7], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:30 UTC +00:00]]  (4.9ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."id" != 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 6 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:31 UTC +00:00]]  (4.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:31 UTC +00:00]]  (3.8ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:31 UTC +00:00]]  (3.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:31 UTC +00:00]]  (3.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:31 UTC +00:00]]  (4.0ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 9 AND "commontator_comments"."thread_id" = 8) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:31 UTC +00:00], ["creator_id", 9], ["creator_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 03:37:31 UTC +00:00]]  (3.7ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 9 AND "commontator_comments"."thread_id" = 8) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:31 UTC +00:00], ["creator_id", 9], ["creator_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 03:37:31 UTC +00:00]]  (4.3ms) commit transaction Commontator::Comment Load (0.3ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 8]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:31 UTC +00:00]]  (3.6ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:31 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:31 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:31 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 03:37:31 UTC +00:00]]  (3.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:31 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:31 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 03:37:31 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 10]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 11]]  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:31 UTC +00:00]]  (3.9ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:31 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:31 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (1.7ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:31 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Sat, 16 Nov 2013 03:37:31 UTC +00:00]]  (4.9ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:31 UTC +00:00]]  (3.5ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:31 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Sat, 16 Nov 2013 03:37:31 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:31 UTC +00:00]]  (3.5ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 7]]  (4.2ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:31 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:31 UTC +00:00]]  (3.6ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (14.0ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.2ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.2ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.4ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.4ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.6ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.2ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.3ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.5ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.8ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.3ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.3ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.4ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.7ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (6.0ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.2ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.1ms) begin transaction SQL (1.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (13.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (4.9ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (0.9ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to Undisclosed Recipients (25.0ms) Date: Fri, 15 Nov 2013 21:37:43 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <5286e8878a8ed_1f11a35e80746f2@ubuntu.mail> Subject: Anonymous posted a dummy comment on DummyModel #2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on DummyModel #2:

Something

Click here to view all comments on DummyModel #2.

 (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (15.9ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (3.5ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (4.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (3.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 3]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 3]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (5.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (5.3ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (3.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 6]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (4.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 3 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (3.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (3.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (5.2ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 8 AND "commontator_comments"."thread_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["creator_id", 8], ["creator_type", "DummyUser"], ["thread_id", 6], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 8 AND "commontator_comments"."thread_id" = 6) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["creator_id", 8], ["creator_type", "DummyUser"], ["thread_id", 6], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (5.1ms) commit transaction Commontator::Comment Load (0.3ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 6]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (7.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 8]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (4.9ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 15 AND "commontator_comments"."thread_id" = 9) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["creator_id", 15], ["creator_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]]  (3.8ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 9]]  (0.0ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 9]] SQL (0.3ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 9 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["closer_id", 15], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:43 UTC +00:00]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]]  (4.3ms) commit transaction Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 9]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 9]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 9], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 10]]  (16.1ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.8ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.3ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.2ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.2ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.1ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.5ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.7ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.2ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.1ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.6ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.4ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.2ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.3ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.6ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.8ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.2ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (12.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (4.7ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.3ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (1.7ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (1.6ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to Undisclosed Recipients (3.4ms) Date: Fri, 15 Nov 2013 21:37:51 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <5286e88f550ed_1f1bcafe7c594cc@ubuntu.mail> Subject: Anonymous posted a dummy comment on DummyModel #2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on DummyModel #2:

Something

Click here to view all comments on DummyModel #2.

 (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (24.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (4.9ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (5.5ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 3]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 3]] SQL (0.4ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 3 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["closer_id", 4], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 3]]  (4.7ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 3]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 3]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 3], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 4]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (4.9ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (3.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."id" != 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 6 [["closed_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["closer_id", 6], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."id" != 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 6 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (5.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 8]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (5.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 9 AND "commontator_comments"."thread_id" = 8) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["creator_id", 9], ["creator_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (5.6ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 9 AND "commontator_comments"."thread_id" = 8) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["creator_id", 9], ["creator_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (5.0ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 8]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (5.4ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 9]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 10]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 9]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 11]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (1.7ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (5.8ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 7]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:51 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (11.5ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.3ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (4.6ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (4.6ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.3ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.1ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.5ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (6.3ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.3ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.3ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.3ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.6ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.5ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.3ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.4ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.9ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (6.0ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.2ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.1ms) begin transaction SQL (1.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (13.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.3ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (1.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (1.5ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (1.5ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to Undisclosed Recipients (3.5ms) Date: Fri, 15 Nov 2013 21:37:56 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <5286e894d83db_1f22112de7c2145f@ubuntu.mail> Subject: Anonymous posted a dummy comment on DummyModel #2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on DummyModel #2:

Something

Click here to view all comments on DummyModel #2.

 (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (25.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:56 UTC +00:00]]  (5.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00]]  (5.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00]]  (3.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 3]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 6]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 3]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00]]  (3.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 8]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 9]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 5 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00]]  (4.8ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 10 AND "commontator_comments"."thread_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00], ["creator_id", 10], ["creator_type", "DummyUser"], ["thread_id", 5], ["updated_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00]]  (4.8ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 5]]  (0.0ms) begin transaction Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 5]] SQL (0.3ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 5 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00], ["closer_id", 10], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 5]]  (4.1ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 5]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 5]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 5], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 6]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 11 AND "commontator_comments"."thread_id" = 7) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00], ["creator_id", 11], ["creator_type", "DummyUser"], ["thread_id", 7], ["updated_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00]]  (5.4ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 11 AND "commontator_comments"."thread_id" = 7) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00], ["creator_id", 11], ["creator_type", "DummyUser"], ["thread_id", 7], ["updated_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00]]  (4.1ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 7]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00]]  (4.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00]]  (4.8ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."id" != 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 8 [["closed_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00], ["closer_id", 12], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."id" != 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 8 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00]]  (4.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (1.7ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00]]  (3.9ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00]]  (3.5ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00]]  (3.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:37:57 UTC +00:00]]  (4.2ms) commit transaction  (11.5ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (4.6ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (4.4ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (4.6ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (4.7ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (4.9ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.5ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (6.2ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.4ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.3ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.7ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.5ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.2ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.3ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.6ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.8ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.2ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00]]  (13.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00]]  (4.9ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.3ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.9ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.3ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (1.5ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (1.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to Undisclosed Recipients (3.5ms) Date: Fri, 15 Nov 2013 21:38:15 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <5286e8a789525_1f2ba95e8468850@ubuntu.mail> Subject: Anonymous posted a dummy comment on DummyModel #2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on DummyModel #2:

Something

Click here to view all comments on DummyModel #2.

 (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (27.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (5.5ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 6 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["creator_id", 6], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (5.3ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 6 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["creator_id", 6], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (5.4ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 3]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 8]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 9 AND "commontator_comments"."thread_id" = 5) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["creator_id", 9], ["creator_type", "DummyUser"], ["thread_id", 5], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (5.7ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 5]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 5]] SQL (0.3ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 5 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["closer_id", 9], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 5]]  (5.1ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 5]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 5]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 5], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 6]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (4.3ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."id" != 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 7 [["closed_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["closer_id", 10], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (3.5ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."id" != 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 7 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (4.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (6.5ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (5.3ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 8]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 11]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 12]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 5 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:15 UTC +00:00]]  (6.6ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:38:16 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 03:38:16 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:16 UTC +00:00]]  (3.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:38:16 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 03:38:16 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 9]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 9]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:16 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:38:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:16 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:38:16 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:38:16 UTC +00:00]]  (5.7ms) commit transaction  (14.0ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.5ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.2ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.1ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.4ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.7ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.2ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.1ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.1ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.6ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.4ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.2ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.5ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.6ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.7ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.2ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.1ms) begin transaction SQL (1.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (11.3ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (5.0ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (19.3ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.7ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 28ms (ActiveRecord: 0.7ms)  (1.5ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (1.4ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.5ms) Sent mail to Undisclosed Recipients (3.5ms) Date: Fri, 15 Nov 2013 21:39:23 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <5286e8ebb7eb_1f3ccbfe80626bf@ubuntu.mail> Subject: Anonymous posted a dummy comment on DummyModel #2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on DummyModel #2:

Something

Click here to view all comments on DummyModel #2.

 (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (27.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (5.1ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 2]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] SQL (0.4ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (6.7ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 2]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 3]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (5.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (5.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (3.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (3.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 5]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 5]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 6]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (3.8ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (4.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (3.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."id" != 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 7 [["closed_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["closer_id", 8], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (3.9ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."id" != 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 7 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (4.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (4.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 8]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 9]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 10]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (3.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 5 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (3.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (11.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 11 AND "commontator_comments"."thread_id" = 9) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["creator_id", 11], ["creator_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (5.7ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 11 AND "commontator_comments"."thread_id" = 9) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["creator_id", 11], ["creator_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (5.2ms) commit transaction Commontator::Comment Load (0.3ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 9]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (1.7ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (5.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (4.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 7]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:23 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (9.3ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (4.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (3.9ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (4.8ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.5ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (4.5ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (4.7ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (4.9ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (4.6ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (4.8ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (4.8ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.2ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.1ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.1ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.0ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.7ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (6.0ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.3ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (11.2ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.3ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.9ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (2.8ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (1.3ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to Undisclosed Recipients (3.6ms) Date: Fri, 15 Nov 2013 21:39:39 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <5286e8fb6138_1f47c85e74943e9@ubuntu.mail> Subject: Anonymous posted a dummy comment on DummyModel #2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on DummyModel #2:

Something

Click here to view all comments on DummyModel #2.

 (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (37.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (5.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (6.0ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (4.8ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 3]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (5.5ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (5.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."id" != 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 5 [["closed_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["closer_id", 9], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."id" != 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 5 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (4.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (3.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (4.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (3.8ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 7]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 11]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 12]] SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (3.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 5 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (4.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (5.5ms) commit transaction Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (5.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (3.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 8]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]]  (1.8ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (6.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (5.5ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 15 AND "commontator_comments"."thread_id" = 9) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["creator_id", 15], ["creator_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]]  (4.4ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 9]]  (0.1ms) begin transaction Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 9]] SQL (0.2ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 9 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["closer_id", 15], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:39:39 UTC +00:00]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]]  (3.6ms) commit transaction Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 9]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 9]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 9], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 10]]  (14.2ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.2ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.0ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.4ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.2ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.2ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.4ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.8ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.1ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.2ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.8ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.4ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.2ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.9ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (6.1ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.3ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (14.2ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.3ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.0ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.2ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.3ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.2ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.5ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.9ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.3ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.2ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.3ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.8ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.4ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.6ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.7ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.2ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (3.7ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (3.7ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (3.7ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (13.7ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (4.9ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.2ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.2ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.0ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.2ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.2ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.0ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.0ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (4.8ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (4.6ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.8ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.0ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (4.9ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.5ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.6ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.0ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (11.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (5.3ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (20.9ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (2.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 33ms (ActiveRecord: 2.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to Undisclosed Recipients (3.4ms) Date: Fri, 15 Nov 2013 21:41:35 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <5286e96fe4c7c_1f5f691e784506c@ubuntu.mail> Subject: Anonymous posted a dummy comment on DummyModel #2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on DummyModel #2:

Something

Click here to view all comments on DummyModel #2.

 (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]]  (23.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]]  (4.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]]  (3.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]]  (5.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]]  (4.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]]  (3.8ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (1.8ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]]  (5.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 3]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 5]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 7 AND "commontator_comments"."thread_id" = 5) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["creator_id", 7], ["creator_type", "DummyUser"], ["thread_id", 5], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 7 AND "commontator_comments"."thread_id" = 5) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["creator_id", 7], ["creator_type", "DummyUser"], ["thread_id", 5], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]]  (5.3ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 5]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 12]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."id" != 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 8 [["closed_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["closer_id", 14], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."id" != 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 8 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 15 AND "commontator_comments"."thread_id" = 9) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["creator_id", 15], ["creator_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]]  (5.2ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 9]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 9]] SQL (0.3ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 9 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["closer_id", 15], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:36 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]]  (4.5ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 9]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 9]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 9], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 10]]  (13.5ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (4.9ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.4ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (4.1ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (4.6ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.0ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.0ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.1ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.0ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (4.5ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (4.3ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (3.9ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (3.9ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (4.1ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (4.6ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.7ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (4.9ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.5ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (14.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (6.2ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (20.9ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.4ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 33ms (ActiveRecord: 1.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:50 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to Undisclosed Recipients (3.7ms) Date: Fri, 15 Nov 2013 21:41:51 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <5286e97f2d811_1f67a9fe84657d2@ubuntu.mail> Subject: Anonymous posted a dummy comment on DummyModel #2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on DummyModel #2:

Something

Click here to view all comments on DummyModel #2.

 (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (32.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (4.8ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 2]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] SQL (0.4ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (5.2ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 3]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (5.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["thread_id", 4], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (5.3ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["thread_id", 4], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (5.1ms) commit transaction Commontator::Comment Load (0.3ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 4]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (1.8ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (5.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (5.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 5]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (5.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (5.2ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (5.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 3 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (5.2ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."id" != 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 8 [["closed_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["closer_id", 9], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."id" != 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 8 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (4.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (4.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (4.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (3.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (3.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (5.2ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 15) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00], ["subscriber_id", 15], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Sat, 16 Nov 2013 03:41:51 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 10]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 15]]  (12.7ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.4ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.2ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.0ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.0ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.2ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.4ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.4ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (4.3ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (4.3ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (4.8ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (4.3ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (4.3ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.0ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (4.6ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (4.8ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (4.5ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (4.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (4.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.5ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (11.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.6ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 33ms (ActiveRecord: 1.3ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to Undisclosed Recipients (3.5ms) Date: Fri, 15 Nov 2013 21:42:12 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <5286e994f1a4b_1f71105be7c2455e@ubuntu.mail> Subject: Anonymous posted a dummy comment on DummyModel #2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on DummyModel #2:

Something

Click here to view all comments on DummyModel #2.

 (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (27.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (3.9ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (3.5ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (6.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 3]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 3]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (5.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.7ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (5.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (4.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 6]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 3 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 4 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 7 AND "commontator_comments"."thread_id" = 5) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["creator_id", 7], ["creator_type", "DummyUser"], ["thread_id", 5], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (5.2ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 7 AND "commontator_comments"."thread_id" = 5) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["creator_id", 7], ["creator_type", "DummyUser"], ["thread_id", 5], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (5.1ms) commit transaction Commontator::Comment Load (0.3ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 5]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (5.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 6]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 8]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 9]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (5.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 7]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (5.2ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 15 AND "commontator_comments"."thread_id" = 9) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["creator_id", 15], ["creator_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]]  (4.8ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 9]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 9]] SQL (0.4ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 9 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["closer_id", 15], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:13 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]]  (4.3ms) commit transaction Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 9]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 9]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 9], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 3 LIMIT 1 [["thread_id", 10]]  (17.4ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (4.9ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.4ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.0ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.0ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.2ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.5ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.3ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.1ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.0ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.8ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.1ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.0ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.3ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.6ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.8ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.1ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.5ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (10.4ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (4.8ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.3ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.9ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["editor_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (1.5ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:42:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (1.5ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to Undisclosed Recipients (3.6ms) Date: Fri, 15 Nov 2013 21:42:35 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <5286e9ab201a7_1f7ae8be804758e@ubuntu.mail> Subject: Anonymous posted a dummy comment on DummyModel #2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on DummyModel #2:

Something

Click here to view all comments on DummyModel #2.

 (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (28.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (5.0ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 2]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] SQL (0.4ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (4.7ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 2]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 3]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (5.5ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (5.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (5.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 5 [["closed_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["closer_id", 7], ["closer_type", "DummyUser"], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."id" != 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 5 [["closed_at", nil], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (4.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (3.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (4.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 9 AND "commontator_comments"."thread_id" = 7) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["creator_id", 9], ["creator_type", "DummyUser"], ["thread_id", 7], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (5.1ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 9 AND "commontator_comments"."thread_id" = 7) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["creator_id", 9], ["creator_type", "DummyUser"], ["thread_id", 7], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (5.0ms) commit transaction Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 7]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (4.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (5.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 11) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["subscriber_id", 11], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 8]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 10]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 11]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (3.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (3.9ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (7.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 12]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]] SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (3.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 5 [["unread", 1], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (4.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 2], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 0], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (6.8ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (3.6ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (4.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (3.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 15) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00], ["subscriber_id", 15], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Sat, 16 Nov 2013 03:42:35 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 10]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 10]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 15]]  (63.6ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.7ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.8ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.7ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.9ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.6ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (6.7ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (6.8ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (6.2ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.9ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.8ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (6.4ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.7ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (4.9ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.8ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.7ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.9ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (6.2ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (4.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (4.6ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.1ms) begin transaction SQL (1.6ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (13.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (5.4ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.3ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (1.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (2.0ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["editor_id", 3], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["editor_id", 3], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (21.9ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["editor_id", 3], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["editor_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 1.0ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (1.7ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:38 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (10.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (1.5ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.6ms) Sent mail to Undisclosed Recipients (3.7ms) Date: Mon, 18 Nov 2013 11:58:39 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <528a554f329f7_bc3112be741848e@ubuntu.mail> Subject: Anonymous posted a dummy comment on DummyModel #2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on DummyModel #2:

Something

Click here to view all comments on DummyModel #2.

 (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (26.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (5.3ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (6.6ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 2]]  (0.0ms) begin transaction Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] SQL (0.2ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (5.4ms) commit transaction Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 3]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["thread_id", 4], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (6.1ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["thread_id", 4], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (6.7ms) commit transaction Commontator::Comment Load (0.5ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 4]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (4.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (3.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (4.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (3.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (3.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (3.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 6 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 6], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 6]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 8]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 6 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 6]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 9]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (4.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (4.3ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."id" != 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 7 [["closed_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["closer_id", 10], ["closer_type", "DummyUser"], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."id" != 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 7 [["closed_at", nil], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (5.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (4.4ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.5ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (5.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (3.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (5.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 12]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 1], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (5.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 5 [["unread", 1], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 2], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 0], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (1.7ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (5.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 15) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00], ["subscriber_id", 15], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Mon, 18 Nov 2013 17:58:39 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 10]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 15]]  (13.1ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (4.9ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.8ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (6.0ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.9ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.8ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (6.1ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (6.4ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (6.2ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.8ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (6.1ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (6.7ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.6ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.8ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.6ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (6.2ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (6.1ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (6.5ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.7ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.6ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.6ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.6ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (14.3ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (6.1ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.3ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["editor_id", 3], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["editor_id", 3], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (22.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.3ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["editor_id", 3], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["editor_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 23ms (ActiveRecord: 1.1ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (1.7ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (1.5ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to Undisclosed Recipients (3.5ms) Date: Mon, 18 Nov 2013 12:02:54 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <528a564ee5567_c4cdb5e8446751@ubuntu.mail> Subject: Anonymous posted a dummy comment on DummyModel #2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on DummyModel #2:

Something

Click here to view all comments on DummyModel #2.

 (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (26.3ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (5.7ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (6.4ms) commit transaction Commontator::Comment Exists (0.3ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 2]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] SQL (0.4ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (5.8ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 2]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 3]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (5.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (6.4ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (5.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (5.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (5.7ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (5.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (5.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (5.7ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 8]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (5.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (5.6ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.3ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."id" != 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 6 [["closed_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["closer_id", 9], ["closer_type", "DummyUser"], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."id" != 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 6 [["closed_at", nil], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (6.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (4.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 11 AND "commontator_comments"."thread_id" = 8) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["creator_id", 11], ["creator_type", "DummyUser"], ["thread_id", 8], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (6.0ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 11 AND "commontator_comments"."thread_id" = 8) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["creator_id", 11], ["creator_type", "DummyUser"], ["thread_id", 8], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (5.4ms) commit transaction Commontator::Comment Load (0.3ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 8]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 12]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 1], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 5 [["unread", 1], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 2], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 0], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (1.7ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (5.9ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (5.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 15) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["subscriber_id", 15], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (3.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 10]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 10]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 15]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (3.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 10]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 10], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 18:02:55 UTC +00:00]]  (3.7ms) commit transaction  (14.9ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.5ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (4.3ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.3ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.5ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.2ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.8ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.8ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (4.9ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (4.6ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.1ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.4ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.0ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.3ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.0ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.7ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.7ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.3ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.5ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.1ms) begin transaction SQL (1.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00]]  (13.9ms) commit transaction  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00]]  (5.1ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.2ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.3ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (1.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["editor_id", 3], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["editor_id", 3], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.4ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["editor_id", 3], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["editor_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 22ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (22.4ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.6ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 9ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.7ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.6ms) Sent mail to Undisclosed Recipients (3.5ms) Date: Mon, 18 Nov 2013 16:06:17 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <528a8f5994d4b_11968a3e78265c@ubuntu.mail> Subject: Anonymous posted a dummy comment on DummyModel #2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on DummyModel #2:

Something

Click here to view all comments on DummyModel #2.

 (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (18.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (5.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."id" != 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 3 [["closed_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["closer_id", 3], ["closer_type", "DummyUser"], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (5.2ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."id" != 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 3 [["closed_at", nil], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (4.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (5.2ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 4 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["creator_id", 4], ["creator_type", "DummyUser"], ["thread_id", 4], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (5.9ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 4]]  (0.0ms) begin transaction Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 4]] SQL (0.2ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 4 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["closer_id", 4], ["closer_type", "DummyUser"], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]]  (5.5ms) commit transaction Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 4]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 4], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 5]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (4.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (5.0ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["thread_id", 6], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (6.1ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 5 AND "commontator_comments"."thread_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["creator_id", 5], ["creator_type", "DummyUser"], ["thread_id", 6], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (4.8ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 6]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (4.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (5.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 7]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 6]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 1], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (5.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (4.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 2], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 0], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (5.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (5.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (5.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (4.9ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (4.2ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Mon, 18 Nov 2013 22:06:17 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 12]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]]  (1.7ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:18 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:18 UTC +00:00]]  (6.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:18 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:18 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:18 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:18 UTC +00:00]]  (5.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 22:06:18 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Mon, 18 Nov 2013 22:06:18 UTC +00:00]]  (5.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:18 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:18 UTC +00:00]]  (5.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 15) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 18 Nov 2013 22:06:18 UTC +00:00], ["subscriber_id", 15], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Mon, 18 Nov 2013 22:06:18 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 10]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 10]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 15]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:18 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:18 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 18 Nov 2013 22:06:18 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:18 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 10]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 10], ["commontable_type", "DummyModel"], ["created_at", Mon, 18 Nov 2013 22:06:18 UTC +00:00], ["updated_at", Mon, 18 Nov 2013 22:06:18 UTC +00:00]]  (5.3ms) commit transaction  (46.5ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.8ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.8ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.8ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.4ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.9ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.8ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (6.7ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.9ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.7ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (6.4ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (6.3ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.9ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.7ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.8ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (6.3ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (7.0ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.9ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (6.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (6.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.8ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (5.0ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.7ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (5.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (3.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00]]  (23.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00]]  (7.4ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (1.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["editor_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 29ms (ActiveRecord: 0.7ms)  (1.6ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (9.8ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (1.5ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.5ms) Sent mail to Undisclosed Recipients (3.5ms) Date: Tue, 19 Nov 2013 18:31:28 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <528c02e0a1610_2a4dd83e84998a9@ubuntu.mail> Subject: Anonymous posted a dummy comment on DummyModel #2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on DummyModel #2:

Something

Click here to view all comments on DummyModel #2.

 (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (31.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (5.6ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (5.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (4.4ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (4.9ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (5.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 6) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["subscriber_id", 6], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (5.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 3 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (5.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 6], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 3]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 6]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 3 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 3]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (4.9ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (5.5ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 8 AND "commontator_comments"."thread_id" = 4) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["creator_id", 8], ["creator_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (5.5ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 4]]  (0.0ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 4]] SQL (0.2ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 4 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["closer_id", 8], ["closer_type", "DummyUser"], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]]  (5.2ms) commit transaction Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 4]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 4]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 4], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 5]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (3.9ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (4.4ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 9 AND "commontator_comments"."thread_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["creator_id", 9], ["creator_type", "DummyUser"], ["thread_id", 6], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (11.6ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 9 AND "commontator_comments"."thread_id" = 6) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["creator_id", 9], ["creator_type", "DummyUser"], ["thread_id", 6], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (5.7ms) commit transaction Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 6]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (4.8ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (5.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (4.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (5.8ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."id" != 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 8 [["closed_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["closer_id", 11], ["closer_type", "DummyUser"], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (3.8ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."id" != 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 8 [["closed_at", nil], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (3.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (3.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (4.6ms) commit transaction Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Wed, 20 Nov 2013 00:31:28 UTC +00:00]]  (5.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:29 UTC +00:00]]  (5.0ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:31:29 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Wed, 20 Nov 2013 00:31:29 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 9]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 12]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 1], ["updated_at", Wed, 20 Nov 2013 00:31:29 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 5 [["unread", 1], ["updated_at", Wed, 20 Nov 2013 00:31:29 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 2], ["updated_at", Wed, 20 Nov 2013 00:31:29 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (1.8ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 6 [["unread", 0], ["updated_at", Wed, 20 Nov 2013 00:31:29 UTC +00:00]]  (5.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:29 UTC +00:00]]  (4.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:29 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:31:29 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 20 Nov 2013 00:31:29 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:29 UTC +00:00]]  (4.8ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 15) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:31:29 UTC +00:00], ["subscriber_id", 15], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 20 Nov 2013 00:31:29 UTC +00:00]]  (5.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 10]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 15]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:29 UTC +00:00]]  (5.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:31:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:29 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 10]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 10], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:31:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:31:29 UTC +00:00]]  (5.2ms) commit transaction  (12.4ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.0ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.6ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.3ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.1ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.6ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.9ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.4ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.4ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.1ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.9ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (5.4ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.5ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.7ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (6.0ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.1ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (12.3ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (4.7ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (1.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["editor_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 20 Nov 2013 00:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 29ms (ActiveRecord: 0.7ms)  (1.5ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.2ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (6.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (1.6ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.4ms) Sent mail to Undisclosed Recipients (3.4ms) Date: Tue, 19 Nov 2013 18:55:29 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <528c0881411ff_2e9ac9be7c4372@ubuntu.mail> Subject: Anonymous posted a dummy comment on DummyModel #2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on DummyModel #2:

Something

Click here to view all comments on DummyModel #2.

 (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (23.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (4.0ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 3 AND "commontator_comments"."thread_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["creator_id", 3], ["creator_type", "DummyUser"], ["thread_id", 3], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (3.6ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 3]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 3]] SQL (0.4ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 3 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["closer_id", 3], ["closer_type", "DummyUser"], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 3]]  (4.6ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 3]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 3]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 3], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 4]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 5 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 5], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (5.6ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 5]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 5]] SQL (0.3ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 1], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 2], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 2 [["unread", 0], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 5 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (4.9ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."id" != 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 6 [["closed_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["closer_id", 6], ["closer_type", "DummyUser"], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.2ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."id" != 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 6 [["closed_at", nil], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (5.3ms) commit transaction Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (6.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 7]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 8]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (5.2ms) commit transaction Commontator::Subscription Load (0.3ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 9) LIMIT 1 SQL (0.4ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["subscriber_id", 9], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (5.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 8 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 10) LIMIT 1 SQL (0.5ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["subscriber_id", 10], ["subscriber_type", "DummyUser"], ["thread_id", 8], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (4.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 11], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 5]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 8 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (5.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (4.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (1.9ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (5.8ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 14 AND "commontator_comments"."thread_id" = 10) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["creator_id", 14], ["creator_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (5.3ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 14 AND "commontator_comments"."thread_id" = 10) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["creator_id", 14], ["creator_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (5.2ms) commit transaction Commontator::Comment Load (0.2ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 10]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (4.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 10]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 10], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 11 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 11 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 15) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["subscriber_id", 15], ["subscriber_type", "DummyUser"], ["thread_id", 11], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (5.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (4.7ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 11 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 16], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 11 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 16) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00], ["subscriber_id", 16], ["subscriber_type", "DummyUser"], ["thread_id", 11], ["updated_at", Wed, 20 Nov 2013 00:55:29 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 11 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 11]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 15]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 11 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 16], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 11]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 16]]  (12.1ms) CREATE TABLE "commontator_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "creator_type" varchar(255), "creator_id" integer, "editor_type" varchar(255), "editor_id" integer, "thread_id" integer NOT NULL, "body" text NOT NULL, "deleted_at" datetime, "cached_votes_total" integer DEFAULT 0, "cached_votes_up" integer DEFAULT 0, "cached_votes_down" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)   (5.5ms) CREATE INDEX "index_commontator_comments_on_cached_votes_down" ON "commontator_comments" ("cached_votes_down")  (5.1ms) CREATE INDEX "index_commontator_comments_on_cached_votes_total" ON "commontator_comments" ("cached_votes_total")  (5.3ms) CREATE INDEX "index_commontator_comments_on_cached_votes_up" ON "commontator_comments" ("cached_votes_up")  (5.1ms) CREATE INDEX "index_c_c_on_c_type_and_c_id_and_t_id" ON "commontator_comments" ("creator_type", "creator_id", "thread_id")  (5.1ms) CREATE INDEX "index_commontator_comments_on_thread_id" ON "commontator_comments" ("thread_id")  (5.4ms) CREATE TABLE "commontator_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscriber_type" varchar(255) NOT NULL, "subscriber_id" integer NOT NULL, "thread_id" integer NOT NULL, "unread" integer DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)   (6.6ms) CREATE UNIQUE INDEX "index_c_s_on_s_type_and_s_id_and_t_id" ON "commontator_subscriptions" ("subscriber_type", "subscriber_id", "thread_id")  (5.5ms) CREATE INDEX "index_commontator_subscriptions_on_thread_id" ON "commontator_subscriptions" ("thread_id")  (5.1ms) CREATE TABLE "commontator_threads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "commontable_type" varchar(255), "commontable_id" integer, "closed_at" datetime, "closer_type" varchar(255), "closer_id" integer, "created_at" datetime, "updated_at" datetime)  (5.8ms) CREATE UNIQUE INDEX "index_c_t_on_c_type_and_c_id" ON "commontator_threads" ("commontable_type", "commontable_id")  (5.9ms) CREATE TABLE "dummy_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (6.0ms) CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (6.0ms) CREATE TABLE "votes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "votable_id" integer, "votable_type" varchar(255), "voter_id" integer, "voter_type" varchar(255), "vote_flag" boolean, "vote_scope" varchar(255), "created_at" datetime, "updated_at" datetime)  (5.2ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type_and_vote_scope" ON "votes" ("votable_id", "votable_type", "vote_scope")  (5.9ms) CREATE INDEX "index_votes_on_votable_id_and_votable_type" ON "votes" ("votable_id", "votable_type")  (5.9ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type_and_vote_scope" ON "votes" ("voter_id", "voter_type", "vote_scope")  (5.4ms) CREATE INDEX "index_votes_on_voter_id_and_voter_type" ON "votes" ("voter_id", "voter_type")  (5.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (5.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (4.8ms) INSERT INTO "schema_migrations" (version) VALUES ('3')  (4.7ms) INSERT INTO "schema_migrations" (version) VALUES ('2')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('1')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')  (0.0ms) begin transaction SQL (1.4ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 1]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 1 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 1], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (10.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (5.6ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::ApplicationHelper: test_0001_must print javascript proc --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- Commontator::Comment: test_0001_must be votable if acts_as_votable is installed -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::Comment: test_0002_must know if it has been modified -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- Commontator::Comment: test_0003_must know if it has been deleted ----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]] SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "deleted_at", "editor_id", "editor_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["deleted_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["editor_id", 3], ["editor_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- Commontator::Comment: test_0004_must make proper timestamps -----------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- Commontator::CommentsController: test_0001_won't get new unless authorized --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- Commontator::CommentsController: test_0002_must get new if authorized ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (1.0ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Processing by Commontator::CommentsController#new as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0003_won't create unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0004_must create if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Another thing' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Another thing"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'And this too' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "And this too"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0005_won't create if double posting -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- Commontator::CommentsController: test_0006_won't edit unless authorized -----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ Commontator::CommentsController: test_0007_must edit if authorized ------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::CommentsController#edit as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0008_won't update unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0009_must update if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "body" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["body", "Something else"], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Processing by Commontator::CommentsController#update as HTML Parameters: {"id"=>"1", "comment"=>{"body"=>"Something else"}} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------- Commontator::CommentsController: test_0010_won't delete unless authorized and not deleted -----------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ Commontator::CommentsController: test_0011_must delete if authorized and not deleted ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#delete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Commontator::CommentsController: test_0012_won't undelete unless authorized and deleted ---------------------------------------------------------------------------------------  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]] Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 3ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["editor_id", 3], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- Commontator::CommentsController: test_0013_must undelete if authorized and deleted ----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "editor_type" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["editor_id", 2], ["editor_type", "DummyUser"], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? ORDER BY "commontator_comments"."id" DESC LIMIT 1 [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["editor_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#undelete as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) UPDATE "commontator_comments" SET "deleted_at" = ?, "editor_id" = ?, "updated_at" = ? WHERE "commontator_comments"."id" = 1 [["deleted_at", nil], ["editor_id", 3], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0014_won't upvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0015_must upvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 21ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#upvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::CommentsController: test_0016_won't downvote unless authorized ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::CommentsController: test_0017_must downvote if authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", true], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#downvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' ORDER BY "votes"."id" ASC LIMIT 1 [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "votes" SET "vote_flag" = ?, "updated_at" = ? WHERE "votes"."id" = 1 [["vote_flag", false], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 29ms (ActiveRecord: 0.7ms)  (1.5ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- Commontator::CommentsController: test_0018_won't unvote unless authorized -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 2 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 2], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms) Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- Commontator::CommentsController: test_0019_must unvote if authorized --------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", true], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.1ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "votes" ("created_at", "updated_at", "votable_id", "votable_type", "vote_flag", "voter_id", "voter_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["votable_id", 1], ["votable_type", "Commontator::Comment"], ["vote_flag", false], ["voter_id", 3], ["voter_type", "DummyUser"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Processing by Commontator::CommentsController#unvote as HTML Parameters: {"id"=>"1"} Commontator::Comment Load (0.0ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."id" = ? LIMIT 1 [["id", "1"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]] ActsAsVotable::Vote Load (0.0ms) SELECT "votes".* FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."voter_id" = 3 AND "votes"."vote_scope" IS NULL AND "votes"."voter_type" = 'DummyUser' [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "votes" WHERE "votes"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."id" != 1 AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? [["votable_id", 1], ["votable_type", "Commontator::Comment"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 't' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) SELECT COUNT(*) FROM "votes" WHERE "votes"."votable_id" = ? AND "votes"."votable_type" = ? AND "votes"."vote_flag" = 'f' AND "votes"."vote_scope" IS NULL [["votable_id", 1], ["votable_type", "Commontator::Comment"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::CommentsController: test_0020_won't send mail if recipients empty ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::CommentsController: test_0021_must send mail if recipients not empty ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::CommentsController#create as HTML Parameters: {"thread_id"=>"2", "comment"=>{"body"=>"Something else"}} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 1], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::SharedHelper: test_0001_must show commontator thread -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) SELECT COUNT(*) FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 2]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/shared/_thread.html.erb (9.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Commontator::Subscription: test_0001_must count unread comments ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "unread", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["unread", 1], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 2], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 1 [["unread", 0], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0001_won't subscribe unless authorized ---------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0002_must subscribe if authorized ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#subscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (1.5ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::SubscriptionsController: test_0003_won't unsubscribe unless authorized -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::SubscriptionsController: test_0004_must unsubscribe if authorized ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 2]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::SubscriptionsController#unsubscribe as HTML Parameters: {"thread_id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ Commontator::SubscriptionsMailer: test_0001_must create deliverable mail ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["subscriber_id", 2], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 3], ["subscriber_type", "DummyUser"]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Subscription Exists (0.0ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 2 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 3) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["subscriber_id", 3], ["subscriber_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 2 AND "commontator_comments"."thread_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["creator_id", 2], ["creator_type", "DummyUser"], ["thread_id", 2], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 2]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 3]] Rendered /home/dantemss/Desktop/commontator/app/views/commontator/comments/_body.html.erb (1.6ms) Sent mail to Undisclosed Recipients (3.5ms) Date: Wed, 20 Nov 2013 17:00:56 -0600 From: no-reply@example.com to: Undisclosed Recipients Message-ID: <528d3f285906e_1371427e8071627@ubuntu.mail> Subject: Anonymous posted a dummy comment on DummyModel #2 Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Anonymous's dummy comment on DummyModel #2:

Something

Click here to view all comments on DummyModel #2.

 (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- Commontator::ThreadsController: test_0001_won't show unless authorized ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsController: test_0002_must show if authorized -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Processing by Commontator::ThreadsController#show as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 2], ["commontable_type", "DummyModel"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 2 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 2], ["subscriber_type", "DummyUser"]] Redirected to http://test.host/dummy_models/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- Commontator::ThreadsController: test_0003_won't close unless authorized and open --------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- Commontator::ThreadsController: test_0004_must close if authorized and open ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#close as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- Commontator::ThreadsController: test_0005_won't reopen unless authorized and closed -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Completed 403 Forbidden in 0ms (ActiveRecord: 0.0ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Completed 403 Forbidden in 1ms (ActiveRecord: 0.1ms) Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 2]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Commontator::ThreadsController: test_0006_must reopen if authorized and closed ------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Commontator::ThreadsController#reopen as HTML Parameters: {"id"=>"2"} Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", "2"]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]]  (0.0ms) SAVEPOINT active_record_1 Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/commontator/threads/2 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- Commontator::ThreadsHelper: test_0001_must print commontable name -----------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.0ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (18.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 2]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 2], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (4.7ms) commit transaction  (0.0ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) UPDATE "commontator_threads" SET "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["closer_id", 2], ["closer_type", "DummyUser"], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (3.8ms) commit transaction  (0.1ms) begin transaction Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 2 AND "commontator_threads"."id" != 2 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) UPDATE "commontator_threads" SET "closed_at" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 2 [["closed_at", nil], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (3.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (3.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 3]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 3 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 3], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (4.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (3.7ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 4]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 4 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 4], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 4], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 4) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["subscriber_id", 4], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (4.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (3.7ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 4 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 5], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 4 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 5) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["subscriber_id", 5], ["subscriber_type", "DummyUser"], ["thread_id", 4], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 4]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 5]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (4.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 5]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 6 AND "commontator_comments"."thread_id" = 5) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["creator_id", 6], ["creator_type", "DummyUser"], ["thread_id", 5], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (5.3ms) commit transaction Commontator::Comment Exists (0.2ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 5]]  (0.1ms) begin transaction Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? LIMIT 1 [["id", 5]] SQL (0.4ms) UPDATE "commontator_threads" SET "commontable_id" = ?, "commontable_type" = ?, "closed_at" = ?, "closer_id" = ?, "closer_type" = ?, "updated_at" = ? WHERE "commontator_threads"."id" = 5 [["commontable_id", nil], ["commontable_type", nil], ["closed_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["closer_id", 6], ["closer_type", "DummyUser"], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 5 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 5], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 5]]  (5.4ms) commit transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 5]] DummyModel Load (0.2ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? LIMIT 1 [["id", 5]] Commontator::Thread Load (0.1ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."commontable_id" = ? AND "commontator_threads"."commontable_type" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["commontable_id", 5], ["commontable_type", "DummyModel"]] Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? AND "commontator_comments"."id" = 1 LIMIT 1 [["thread_id", 6]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]] DummyModel Load (0.1ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 6]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 6 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 6], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.2ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.2ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 7) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["subscriber_id", 7], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.1ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 7 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 8) LIMIT 1 SQL (0.3ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["subscriber_id", 8], ["subscriber_type", "DummyUser"], ["thread_id", 7], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (3.8ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 9], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.2ms) DELETE FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."id" = ? [["id", 3]]  (5.4ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 7], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 8], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (4.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 7 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 10], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (4.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 7]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 7 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 7], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (5.1ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 11 AND "commontator_comments"."thread_id" = 8) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["creator_id", 11], ["creator_type", "DummyUser"], ["thread_id", 8], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (11.9ms) commit transaction  (0.0ms) begin transaction Commontator::Comment Exists (0.1ms) SELECT 1 AS one FROM "commontator_comments" WHERE ("commontator_comments"."body" = 'Something else' AND "commontator_comments"."creator_type" = 'DummyUser' AND "commontator_comments"."creator_id" = 11 AND "commontator_comments"."thread_id" = 8) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_comments" ("body", "created_at", "creator_id", "creator_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "Something else"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["creator_id", 11], ["creator_type", "DummyUser"], ["thread_id", 8], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (4.3ms) commit transaction Commontator::Comment Load (0.1ms) SELECT "commontator_comments".* FROM "commontator_comments" WHERE "commontator_comments"."thread_id" = ? [["thread_id", 8]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (3.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 8]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 8 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 8], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (3.9ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 12) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["subscriber_id", 12], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (4.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (4.0ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 9 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 13) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["subscriber_id", 13], ["subscriber_type", "DummyUser"], ["thread_id", 9], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (4.2ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 12], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 9]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 12]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 9 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 13], ["subscriber_type", "DummyUser"]] Commontator::Thread Load (0.0ms) SELECT "commontator_threads".* FROM "commontator_threads" WHERE "commontator_threads"."id" = ? ORDER BY "commontator_threads"."id" ASC LIMIT 1 [["id", 9]] DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 13]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (4.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 9]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 9 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 9], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]]  (1.7ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 14) LIMIT 1 SQL (0.2ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["subscriber_id", 14], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (5.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (4.5ms) commit transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Exists (0.1ms) SELECT 1 AS one FROM "commontator_subscriptions" WHERE ("commontator_subscriptions"."thread_id" = 10 AND "commontator_subscriptions"."subscriber_type" = 'DummyUser' AND "commontator_subscriptions"."subscriber_id" = 15) LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_subscriptions" ("created_at", "subscriber_id", "subscriber_type", "thread_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["subscriber_id", 15], ["subscriber_type", "DummyUser"], ["thread_id", 10], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (5.1ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."thread_id" = ? [["thread_id", 10]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 14]] DummyUser Load (0.0ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? ORDER BY "dummy_users"."id" ASC LIMIT 1 [["id", 15]] SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 1], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (4.3ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 7 [["unread", 1], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (4.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 2], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (4.4ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.0ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) UPDATE "commontator_subscriptions" SET "unread" = ?, "updated_at" = ? WHERE "commontator_subscriptions"."id" = 8 [["unread", 0], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (4.3ms) commit transaction Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 14], ["subscriber_type", "DummyUser"]] Commontator::Subscription Load (0.1ms) SELECT "commontator_subscriptions".* FROM "commontator_subscriptions" WHERE "commontator_subscriptions"."subscriber_id" = ? AND "commontator_subscriptions"."subscriber_type" = ? AND "commontator_subscriptions"."thread_id" = 10 ORDER BY "commontator_subscriptions"."id" ASC LIMIT 1 [["subscriber_id", 15], ["subscriber_type", "DummyUser"]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (4.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "dummy_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]] DummyModel Load (0.0ms) SELECT "dummy_models".* FROM "dummy_models" WHERE "dummy_models"."id" = ? ORDER BY "dummy_models"."id" ASC LIMIT 1 [["id", 10]] Commontator::Thread Exists (0.1ms) SELECT 1 AS one FROM "commontator_threads" WHERE ("commontator_threads"."commontable_id" = 10 AND "commontator_threads"."commontable_type" = 'DummyModel') LIMIT 1 SQL (0.1ms) INSERT INTO "commontator_threads" ("commontable_id", "commontable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["commontable_id", 10], ["commontable_type", "DummyModel"], ["created_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00], ["updated_at", Wed, 20 Nov 2013 23:00:56 UTC +00:00]]  (4.7ms) commit transaction